diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-07-05 15:45:48 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-07-05 15:45:48 -0700 |
| commit | fc7c0e07be010d701e7098cbeb9d34c915b66e7b (patch) | |
| tree | 5e3f582319f4b48bdfc6b17f5448353a8bb0e0ec /src | |
| parent | 388520a40b866dc43cd130fcbaeda866ccd4217e (diff) | |
| download | zig-fc7c0e07be010d701e7098cbeb9d34c915b66e7b.tar.gz zig-fc7c0e07be010d701e7098cbeb9d34c915b66e7b.zip | |
stage2: propagate use_stage1 to sub-compilation
This makes it so that -fno-stage1 also affects compiler-rt for example.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Compilation.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 85db5aa76a..b00f135813 100644 --- a/src/Compilation.zig +++ b/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, |
