stage2: propagate use_stage1 to sub-compilation

This makes it so that -fno-stage1 also affects compiler-rt for example.
This commit is contained in:
Andrew Kelley 2022-07-05 15:45:48 -07:00
parent 388520a40b
commit fc7c0e07be

View File

@ -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,