diff options
author | 2015-10-26 14:42:41 +0000 | |
---|---|---|
committer | 2015-10-27 11:47:09 +0000 | |
commit | ee51bdd08ab3cc883f5e5e90c6f8ecadf8ba1ebb (patch) | |
tree | fc1c98d3a6e96ba31dde5257665b47e7ac8073fa /src/main/java/com/google/devtools/build/lib/rules/cpp/CppLinkAction.java | |
parent | e42275c03a1978f4eb5aa97e6a4929606e97bed8 (diff) |
Allow C++ compile actions to run in a sandbox by replacing the LocalGccStrategy / LocalLinkStrategy with SpawnGccStrategy / SpawnLinkStrategy.
RELNOTES: C++ compile actions run in a sandbox now on systems that support sandboxed execution.
--
MOS_MIGRATED_REVID=106299043
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/cpp/CppLinkAction.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CppLinkAction.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppLinkAction.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppLinkAction.java index 36c197bda6..ccfb2e1ad5 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppLinkAction.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppLinkAction.java @@ -289,9 +289,7 @@ public final class CppLinkAction extends AbstractAction { @Override public String describeStrategy(Executor executor) { - return fake - ? "fake,local" - : executor.getContext(CppLinkActionContext.class).strategyLocality(this); + return fake ? "fake,local" : executor.getContext(CppLinkActionContext.class).strategyLocality(); } // Don't forget to update FAKE_LINK_GUID if you modify this method. |