Commit fc7c0e07be

Andrew Kelley <andrew@ziglang.org>
2022-07-06 00:45:48
stage2: propagate use_stage1 to sub-compilation
This makes it so that -fno-stage1 also affects compiler-rt for example.
1 parent 388520a
Changed files (1)
src/Compilation.zig
@@ -5005,6 +5005,7 @@ fn buildOutputFromZig(
         .link_mode = .Static,
         .function_sections = true,
         .no_builtin = true,
+        .use_stage1 = build_options.is_stage1 and comp.bin_file.options.use_stage1,
         .want_sanitize_c = false,
         .want_stack_check = false,
         .want_red_zone = comp.bin_file.options.red_zone,