diff options
author | Googler <noreply@google.com> | 2017-03-25 00:30:03 +0000 |
---|---|---|
committer | Philipp Wollermann <philwo@google.com> | 2017-03-27 11:36:50 +0000 |
commit | dfce55426816936f13b910a2f7d06650af6c47bb (patch) | |
tree | 8f7c0c4ba2173a9f3abf333ff336d7186b80117f | |
parent | cae68a5fa32f9892c88bc490c3187fccb341a489 (diff) |
Disable sandboxing for some bundling actions.
--
PiperOrigin-RevId: 151193034
MOS_MIGRATED_REVID=151193034
-rw-r--r-- | tools/build_defs/apple/shared.bzl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/build_defs/apple/shared.bzl b/tools/build_defs/apple/shared.bzl index afef068bb3..4d62db67b2 100644 --- a/tools/build_defs/apple/shared.bzl +++ b/tools/build_defs/apple/shared.bzl @@ -60,6 +60,11 @@ def apple_action(ctx, **kw): """ execution_requirements = kw.get("execution_requirements", {}) execution_requirements += DARWIN_EXECUTION_REQUIREMENTS + + no_sandbox = kw.pop("no_sandbox", False) + if no_sandbox: + execution_requirements["nosandbox"] = "1" + kw["execution_requirements"] = execution_requirements ctx.action(**kw) |