mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
std.Thread: avoid compile errors for single-threaded OS's
This commit is contained in:
parent
ad301d687a
commit
19f893c6bb
@ -554,5 +554,7 @@ pub fn getCurrentThreadId() u64 {
|
||||
}
|
||||
|
||||
test "" {
|
||||
std.testing.refAllDecls(@This());
|
||||
if (!builtin.single_threaded) {
|
||||
std.testing.refAllDecls(@This());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user