Skip to content

Commit

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

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

if !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 9ec9dbc

Please sign in to comment.