aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorVexu <git@vexu.eu>2019-11-30 19:14:45 +0200
committerAndrew Kelley <andrew@ziglang.org>2019-12-03 12:50:41 -0500
commit20bcdab462dc21dc912da3ce4deb432a81cbc3c5 (patch)
treeb1cdd674cfbe448e5563f8f63c39a0c84ffbd909 /src/codegen.cpp
parenta0ca30ce014f4abd9d31ea335e8860fd1b110495 (diff)
downloadzig-20bcdab462dc21dc912da3ce4deb432a81cbc3c5.tar.gz
zig-20bcdab462dc21dc912da3ce4deb432a81cbc3c5.zip
correct caching and add test for missing fn name
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index e3aa8c3609..f41ea7abab 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -8459,6 +8459,8 @@ static Error define_builtin_compile_vars(CodeGen *g) {
cache_buf(&cache_hash, compiler_id);
cache_int(&cache_hash, g->build_mode);
cache_bool(&cache_hash, g->strip_debug_symbols);
+ cache_int(&cache_hash, g->out_type);
+ cache_bool(&cache_hash, g->is_dynamic);
cache_bool(&cache_hash, g->is_test_build);
cache_bool(&cache_hash, g->is_single_threaded);
cache_int(&cache_hash, g->zig_target->is_native);