diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-01-27 00:37:18 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-01-27 17:07:56 -0800 |
| commit | 37037b269e4484702d12a3c8c909d4b8ed5895f1 (patch) | |
| tree | 3aeb088d4cd8124d3ff7b9d4111515a619b80c16 /src/Compilation.zig | |
| parent | 884b1423a4e33323b28d97b7458bade9a36acce9 (diff) | |
| download | zig-37037b269e4484702d12a3c8c909d4b8ed5895f1.tar.gz zig-37037b269e4484702d12a3c8c909d4b8ed5895f1.zip | |
frontend: use main Compilation code_model when building libxx
as well as libtsan, libunwind, and libc files
Diffstat (limited to 'src/Compilation.zig')
| -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 22bd0f1d59..1362b16cc9 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -6611,6 +6611,7 @@ pub fn build_crt_file( .structured_cfg = comp.root_mod.structured_cfg, // Some libcs (e.g. musl) are opinionated about -fno-builtin. .no_builtin = options.no_builtin orelse comp.root_mod.no_builtin, + .code_model = comp.root_mod.code_model, }, .global = config, .cc_argv = &.{}, |
