File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -202,14 +202,15 @@ export class BuildFlags {
202
202
if ( ! configuration . disableSandbox ) {
203
203
return args ;
204
204
}
205
+ const disableSandboxFlags = [ "--disable-sandbox" , "-Xswiftc" , "-disable-sandbox" ] ;
205
206
switch ( args [ 0 ] ) {
206
207
case "package" : {
207
- return [ args [ 0 ] , ...BuildFlags . disableSandboxFlags ( ) , ...args . slice ( 1 ) ] ;
208
+ return [ args [ 0 ] , ...disableSandboxFlags , ...args . slice ( 1 ) ] ;
208
209
}
209
210
case "build" :
210
211
case "run" :
211
212
case "test" : {
212
- return [ ...args , ...BuildFlags . disableSandboxFlags ( ) ] ;
213
+ return [ ...args , ...disableSandboxFlags ] ;
213
214
}
214
215
default :
215
216
// Do nothing for other commands
@@ -223,13 +224,6 @@ export class BuildFlags {
223
224
) ;
224
225
}
225
226
226
- /**
227
- * Get flags for disabling sandboxing when running SwiftPM
228
- */
229
- static disableSandboxFlags ( ) : string [ ] {
230
- return [ "--disable-sandbox" , "-Xswiftc" , "-disable-sandbox" ] ;
231
- }
232
-
233
227
/**
234
228
* Filter argument list
235
229
* @param args argument list
You can’t perform that action at this time.
0 commit comments