authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-05 15:45:48-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-05 15:45:48-07:00
logfc7c0e07be010d701e7098cbeb9d34c915b66e7b
tree5e3f582319f4b48bdfc6b17f5448353a8bb0e0ec
parent388520a40b866dc43cd130fcbaeda866ccd4217e

stage2: propagate use_stage1 to sub-compilation

This makes it so that -fno-stage1 also affects compiler-rt for example.

1 files changed, 1 insertions(+), 0 deletions(-)

src/Compilation.zig+1
...@@ -5005,6 +5005,7 @@ fn buildOutputFromZig(...@@ -5005,6 +5005,7 @@ fn buildOutputFromZig(
5005 .link_mode = .Static,5005 .link_mode = .Static,
5006 .function_sections = true,5006 .function_sections = true,
5007 .no_builtin = true,5007 .no_builtin = true,
5008 .use_stage1 = build_options.is_stage1 and comp.bin_file.options.use_stage1,
5008 .want_sanitize_c = false,5009 .want_sanitize_c = false,
5009 .want_stack_check = false,5010 .want_stack_check = false,
5010 .want_red_zone = comp.bin_file.options.red_zone,5011 .want_red_zone = comp.bin_file.options.red_zone,