diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-11-04 14:24:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-04 14:24:59 -0400 |
| commit | a7d8cd591c47536b0a1e359bf3b1806fc057ffe9 (patch) | |
| tree | 069ca321e822ea95d7265ece0b79173832a0745a /src/Compilation.zig | |
| parent | f6de3ec963e3a7d96cd4f6c72b0f076f0437c45d (diff) | |
| parent | 095c4294aa8b275da0627adefad046923fcaae46 (diff) | |
| download | zig-a7d8cd591c47536b0a1e359bf3b1806fc057ffe9.tar.gz zig-a7d8cd591c47536b0a1e359bf3b1806fc057ffe9.zip | |
Merge pull request #17788 from jacobly0/x86_64
x86_64: pass more tests
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index f51500cf43..a041a4b188 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1121,7 +1121,9 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { const include_compiler_rt = options.want_compiler_rt orelse needs_c_symbols; const must_single_thread = target_util.isSingleThreaded(options.target); - const single_threaded = options.single_threaded orelse must_single_thread; + const single_threaded = options.single_threaded orelse must_single_thread or + // x86_64 codegen doesn't support TLV for most object formats + (!use_llvm and options.target.cpu.arch == .x86_64 and options.target.ofmt != .macho); if (must_single_thread and !single_threaded) { return error.TargetRequiresSingleThreaded; } |
