aboutsummaryrefslogtreecommitdiff
path: root/src/ir.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-01-28 14:42:22 +0000
committergingerBill <bill@gingerbill.org>2018-01-28 14:42:22 +0000
commitdce45e7d58f9bd0b265ef9c3d5d8abebc8f77290 (patch)
tree386a4d46b9cb33eabd371b6788014c543de70abe /src/ir.cpp
parent1a0877e96500fea44f44cd02459f977a90b68a47 (diff)
Add ODIN_DEBUG
Diffstat (limited to 'src/ir.cpp')
-rw-r--r--src/ir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir.cpp b/src/ir.cpp
index 4dbba4667..f2ab85e38 100644
--- a/src/ir.cpp
+++ b/src/ir.cpp
@@ -7598,7 +7598,7 @@ void ir_init_module(irModule *m, Checker *c) {
m->info = &c->info;
m->generate_debug_info = false;
- if (build_context.debug) {
+ if (build_context.ODIN_DEBUG) {
m->generate_debug_info = build_context.ODIN_OS == "windows" && build_context.word_size == 8;
}