Skip to content

Commit fc7c0e0

Browse files
committed
stage2: propagate use_stage1 to sub-compilation
This makes it so that -fno-stage1 also affects compiler-rt for example.
1 parent 388520a commit fc7c0e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Compilation.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5005,6 +5005,7 @@ fn buildOutputFromZig(
50055005
.link_mode = .Static,
50065006
.function_sections = true,
50075007
.no_builtin = true,
5008+
.use_stage1 = build_options.is_stage1 and comp.bin_file.options.use_stage1,
50085009
.want_sanitize_c = false,
50095010
.want_stack_check = false,
50105011
.want_red_zone = comp.bin_file.options.red_zone,

0 commit comments

Comments
 (0)