mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Macros] Add option to disable sandbox for exectuable plugins
`-disable-sandbox` to disable sandboxing when invoking subprocess from from the frontend. Since `sandbox(7)` in macOS doesn't support nested sandbox, complation used to fail when the parent build process is sandboxed.
This commit is contained in:
@@ -199,7 +199,8 @@ PluginLoader::loadExecutablePlugin(StringRef path) {
|
||||
DepTracker->addDependency(resolvedPath, /*IsSystem=*/false);
|
||||
|
||||
// Load the plugin.
|
||||
auto plugin = getRegistry()->loadExecutablePlugin(resolvedPath);
|
||||
auto plugin =
|
||||
getRegistry()->loadExecutablePlugin(resolvedPath, disableSandbox);
|
||||
if (!plugin) {
|
||||
resolvedPath.push_back(0);
|
||||
return llvm::handleErrors(
|
||||
|
||||
Reference in New Issue
Block a user