std.Thread: avoid compile errors for single-threaded OS's
This commit is contained in:
@@ -554,5 +554,7 @@ pub fn getCurrentThreadId() u64 {
|
||||
}
|
||||
|
||||
test "" {
|
||||
std.testing.refAllDecls(@This());
|
||||
if (!builtin.single_threaded) {
|
||||
std.testing.refAllDecls(@This());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user