Skip to content

Commit 9ec9dbc

Browse files
committed
Forward '-disable-sandbox' option to the frontend
(cherry picked from commit e6a5d44)
1 parent 889bd3c commit 9ec9dbc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/SwiftDriver/Jobs/FrontendJobHelpers.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@ extension Driver {
295295
try commandLine.appendLast(.enableBuiltinModule, from: &parsedOptions)
296296
}
297297

298+
if isFrontendArgSupported(.disableSandbox) {
299+
try commandLine.appendLast(.disableSandbox, from: &parsedOptions)
300+
}
301+
298302
if !useClangIncludeTree, let workingDirectory = workingDirectory {
299303
// Add -Xcc -working-directory before any other -Xcc options to ensure it is
300304
// overridden by an explicit -Xcc -working-directory, although having a

0 commit comments

Comments
 (0)