expose builtin.strip_debug_info

zig code now can be made aware that it will not have any debug
information available at runtime.
This commit is contained in:
Andrew Kelley
2019-06-14 18:18:43 -04:00
parent f8f054b354
commit 362c79140f
2 changed files with 3 additions and 0 deletions

View File

@@ -954,6 +954,7 @@ int main(int argc, char **argv) {
case CmdBuiltin: {
CodeGen *g = codegen_create(main_pkg_path, nullptr, &target,
out_type, build_mode, override_lib_dir, override_std_dir, nullptr, nullptr);
codegen_set_strip(g, strip);
g->subsystem = subsystem;
g->valgrind_support = valgrind_support;
g->want_pic = want_pic;