Disable build file config runs for WASI (#1102)

This commit is contained in:
Auguste Rame 2023-04-01 23:07:38 -04:00 committed by GitHub
parent 8b5c649805
commit 99af009232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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| {