Skip to content

Commit e6a5d44

Browse files
committed
Forward '-disable-sandbox' option to the frontend
1 parent c49b822 commit e6a5d44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/SwiftDriver/Jobs/FrontendJobHelpers.swift

+4
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ extension Driver {
318318
try commandLine.appendLast(.enableBuiltinModule, from: &parsedOptions)
319319
}
320320

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

0 commit comments

Comments
 (0)