From 99af0092324bb5e2513d127d9f5b4a49b94b9b3d Mon Sep 17 00:00:00 2001 From: Auguste Rame <19855629+SuperAuguste@users.noreply.github.com> Date: Sat, 1 Apr 2023 23:07:38 -0400 Subject: [PATCH] Disable build file config runs for WASI (#1102) --- src/DocumentStore.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DocumentStore.zig b/src/DocumentStore.zig index ee90de1..277ee8d 100644 --- a/src/DocumentStore.zig +++ b/src/DocumentStore.zig @@ -269,6 +269,8 @@ pub fn applySave(self: *DocumentStore, handle: *const Handle) !void { /// Invalidates all build files. Used to rerun /// upon changing the zig exe path via a configuration request. pub fn invalidateBuildFiles(self: *DocumentStore) void { + if (!std.process.can_spawn) return; + var it = self.build_files.iterator(); while (it.next()) |entry| {