mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
InternPool: enable separate codegen/linking thread
Let's see what happens :)
This commit is contained in:
parent
9d1820d206
commit
00fdbf05f3
2 changed files with 3 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue