File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ pub fn activateEmsdkStep(b: *std.Build) *std.Build.Step {
59
59
.linux , .macos = > {
60
60
emsdk_install .step .dependOn (& b .addSystemCommand (&.{ "chmod" , "+x" , emsdk_script_path }).step );
61
61
},
62
+ .windows = > {
63
+ emsdk_install .step .dependOn (& b .addSystemCommand (&.{ "takeown" , "/f" , emsdk_script_path }).step );
64
+ },
62
65
else = > {},
63
66
}
64
67
@@ -79,13 +82,21 @@ pub fn activateEmsdkStep(b: *std.Build) *std.Build.Step {
79
82
.linux , .macos = > {
80
83
const chmod_emcc = b .addSystemCommand (&.{ "chmod" , "+x" , emccPath (b ) });
81
84
chmod_emcc .step .dependOn (& emsdk_activate .step );
85
+ step .dependOn (& chmod_emcc .step );
82
86
83
87
const chmod_emrun = b .addSystemCommand (&.{ "chmod" , "+x" , emrunPath (b ) });
84
88
chmod_emrun .step .dependOn (& emsdk_activate .step );
85
-
86
- step .dependOn (& chmod_emcc .step );
87
89
step .dependOn (& chmod_emrun .step );
88
90
},
91
+ .windows = > {
92
+ const takeown_emcc = b .addSystemCommand (&.{ "takeown" , "/f" , emccPath (b ) });
93
+ takeown_emcc .step .dependOn (& emsdk_activate .step );
94
+ step .dependOn (& takeown_emcc .step );
95
+
96
+ const takeown_emrun = b .addSystemCommand (&.{ "takeown" , "/f" , emrunPath (b ) });
97
+ takeown_emrun .step .dependOn (& emsdk_activate .step );
98
+ step .dependOn (& takeown_emrun .step );
99
+ },
89
100
else = > {},
90
101
}
91
102
You can’t perform that action at this time.
0 commit comments