diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2024-07-14 23:14:06 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2024-07-16 06:28:42 -0400 |
| commit | 00fdbf05f39931d1f6c5808e8da4afca85357214 (patch) | |
| tree | b00969c102e147def637c6f519eafefd17bc42f3 | |
| parent | 9d1820d20635ade6cb2dbfc36744353715653670 (diff) | |
| download | zig-00fdbf05f39931d1f6c5808e8da4afca85357214.tar.gz zig-00fdbf05f39931d1f6c5808e8da4afca85357214.zip | |
InternPool: enable separate codegen/linking thread
Let's see what happens :)
| -rw-r--r-- | src/InternPool.zig | 2 | ||||
| -rw-r--r-- | src/target.zig | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/InternPool.zig b/src/InternPool.zig index cfd6ecbfb0..5379d602a4 100644 --- a/src/InternPool.zig +++ b/src/InternPool.zig @@ -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; diff --git a/src/target.zig b/src/target.zig index 2accc100b8..b80a4977c3 100644 --- a/src/target.zig +++ b/src/target.zig @@ -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, }, }; } |
