From 509be7cf1f10c5d329d2b0524f2af6bfcabd52de Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Fri, 3 Nov 2023 23:18:21 -0400 Subject: x86_64: fix std test failures --- src/Compilation.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Compilation.zig') 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; } -- cgit v1.2.3