diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2024-07-16 14:49:49 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-16 14:49:49 -0400 |
| commit | 88bb0fd288acb6a20abed57cdf459cc4fc788b89 (patch) | |
| tree | 4a488eb0c9ef76f63d13d12de1649ddab9b8caac /src/Zcu/PerThread.zig | |
| parent | d8f81372f148ad2ee5aab12cc7ea55562764b3e7 (diff) | |
| parent | 00fdbf05f39931d1f6c5808e8da4afca85357214 (diff) | |
| download | zig-88bb0fd288acb6a20abed57cdf459cc4fc788b89.tar.gz zig-88bb0fd288acb6a20abed57cdf459cc4fc788b89.zip | |
Merge pull request #20632 from jacobly0/codegen-thread
InternPool: enable separate codegen/linking thread
Diffstat (limited to 'src/Zcu/PerThread.zig')
| -rw-r--r-- | src/Zcu/PerThread.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig index 4c43640843..7bfee42bfb 100644 --- a/src/Zcu/PerThread.zig +++ b/src/Zcu/PerThread.zig @@ -3,7 +3,8 @@ zcu: *Zcu, /// Dense, per-thread unique index. tid: Id, -pub const Id = if (InternPool.single_threaded) enum { main } else enum(u8) { main, _ }; +pub const IdBacking = u7; +pub const Id = if (InternPool.single_threaded) enum { main } else enum(IdBacking) { main, _ }; pub fn destroyDecl(pt: Zcu.PerThread, decl_index: Zcu.Decl.Index) void { const zcu = pt.zcu; |
