Skip to content

Commit 7039905

Browse files
committed
Forward '-disable-sandbox' option to the frontend
1 parent 39b51bd commit 7039905

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
@@ -319,6 +319,10 @@ extension Driver {
319319
try commandLine.appendLast(.enableBuiltinModule, from: &parsedOptions)
320320
}
321321

322+
if isFrontendArgSupported(.disableSandbox) {
323+
try commandLine.appendLast(.disableSandbox, from: &parsedOptions)
324+
}
325+
322326
if !(isCachingEnabled && useClangIncludeTree), let workingDirectory = workingDirectory {
323327
// Add -Xcc -working-directory before any other -Xcc options to ensure it is
324328
// overridden by an explicit -Xcc -working-directory, although having a

0 commit comments

Comments
 (0)