std.Thread: avoid compile errors for single-threaded OS's

This commit is contained in:
Andrew Kelley 2021-01-14 22:42:29 -07:00
parent ad301d687a
commit 19f893c6bb

View File

@ -554,5 +554,7 @@ pub fn getCurrentThreadId() u64 {
}
test "" {
if (!builtin.single_threaded) {
std.testing.refAllDecls(@This());
}
}