correct caching and add test for missing fn name

This commit is contained in:
Vexu
2019-11-30 19:14:45 +02:00
committed by Andrew Kelley
parent a0ca30ce01
commit 20bcdab462
2 changed files with 9 additions and 0 deletions

View File

@@ -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);