Skip to content

Commit

Permalink
Forward '-disable-sandbox' option to the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
rintaro committed Nov 28, 2023
1 parent c49b822 commit e6a5d44
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/SwiftDriver/Jobs/FrontendJobHelpers.swift
Expand Up @@ -318,6 +318,10 @@ extension Driver {
try commandLine.appendLast(.enableBuiltinModule, from: &parsedOptions)
}

if isFrontendArgSupported(.disableSandbox) {
try commandLine.appendLast(.disableSandbox, from: &parsedOptions)
}

if !(isCachingEnabled && useClangIncludeTree), let workingDirectory = workingDirectory {
// Add -Xcc -working-directory before any other -Xcc options to ensure it is
// overridden by an explicit -Xcc -working-directory, although having a
Expand Down

0 comments on commit e6a5d44

Please sign in to comment.