Commit a78ac96134

Loris Cro <kappaloris@gmail.com>
2020-05-07 01:49:38
fix crash in single-threaded builds
1 parent 79bf400
Changed files (1)
lib
std
event
lib/std/event/loop.zig
@@ -616,14 +616,16 @@ pub const Loop = struct {
 
         self.workerRun();
 
-        switch (builtin.os.tag) {
-            .linux,
-            .macosx,
-            .freebsd,
-            .netbsd,
-            .dragonfly,
-            => self.fs_thread.wait(),
-            else => {},
+        if (!builtin.single_threaded) {
+            switch (builtin.os.tag) {
+                .linux,
+                .macosx,
+                .freebsd,
+                .netbsd,
+                .dragonfly,
+                => self.fs_thread.wait(),
+                else => {},
+            }
         }
 
         for (self.extra_threads) |extra_thread| {