diff --git a/gpu-dawn/build.zig b/gpu-dawn/build.zig index b800049b1e..70a43f0fe5 100644 --- a/gpu-dawn/build.zig +++ b/gpu-dawn/build.zig @@ -177,6 +177,9 @@ fn linkFromSource(b: *Builder, step: *std.build.LibExeObjStep, options: Options) } fn ensureSubmodules(allocator: std.mem.Allocator) !void { + if (std.process.getEnvVarOwned(allocator, "NO_ENSURE_SUBMODULES")) |no_ensure_submodules| { + if (std.mem.eql(u8, no_ensure_submodules, "true")) return; + } else |_| {} const child = try std.ChildProcess.init(&.{ "git", "submodule", "update", "--init", "--recursive" }, allocator); child.cwd = thisDir(); child.stderr = std.io.getStdErr();