mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
InternPool: enable separate codegen/linking thread
Let's see what happens :)
This commit is contained in:
parent
9d1820d206
commit
00fdbf05f3
@ -55,7 +55,7 @@ free_dep_entries: std.ArrayListUnmanaged(DepEntry.Index) = .{},
|
||||
/// Whether a multi-threaded intern pool is useful.
|
||||
/// Currently `false` until the intern pool is actually accessed
|
||||
/// from multiple threads to reduce the cost of this data structure.
|
||||
const want_multi_threaded = false;
|
||||
const want_multi_threaded = true;
|
||||
|
||||
/// Whether a single-threaded intern pool impl is in use.
|
||||
pub const single_threaded = builtin.single_threaded or !want_multi_threaded;
|
||||
|
||||
@ -572,7 +572,8 @@ pub inline fn backendSupportsFeature(backend: std.builtin.CompilerBackend, compt
|
||||
else => false,
|
||||
},
|
||||
.separate_thread => switch (backend) {
|
||||
else => false,
|
||||
.stage2_llvm => false,
|
||||
else => true,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user