diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-06-14 18:18:43 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-06-14 18:18:43 -0400 |
| commit | 362c79140fc0638b0f85ed9b2a49f3fead14bb9b (patch) | |
| tree | 954dcc2d07212a3f9cdf35930fb5ff9dd0b1402e /src/codegen.cpp | |
| parent | f8f054b354088eb9e76d9207972022bc1d3dfc28 (diff) | |
| download | zig-362c79140fc0638b0f85ed9b2a49f3fead14bb9b.tar.gz zig-362c79140fc0638b0f85ed9b2a49f3fead14bb9b.zip | |
expose builtin.strip_debug_info
zig code now can be made aware that it will not have any debug
information available at runtime.
Diffstat (limited to 'src/codegen.cpp')
| -rw-r--r-- | src/codegen.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp index bdc8de63d1..88168caff8 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -7948,6 +7948,7 @@ Buf *codegen_generate_builtin_source(CodeGen *g) { buf_appendf(contents, "pub const have_error_return_tracing = %s;\n", bool_to_str(g->have_err_ret_tracing)); buf_appendf(contents, "pub const valgrind_support = %s;\n", bool_to_str(want_valgrind_support(g))); buf_appendf(contents, "pub const position_independent_code = %s;\n", bool_to_str(g->have_pic)); + buf_appendf(contents, "pub const strip_debug_info = %s;\n", bool_to_str(g->strip_debug_symbols)); { TargetSubsystem detected_subsystem = detect_subsystem(g); @@ -7988,6 +7989,7 @@ static Error define_builtin_compile_vars(CodeGen *g) { // Only a few things affect builtin.zig cache_buf(&cache_hash, compiler_id); cache_int(&cache_hash, g->build_mode); + cache_bool(&cache_hash, g->strip_debug_symbols); 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); |
