diff options
author | 2016-08-30 14:02:37 +0000 | |
---|---|---|
committer | 2016-08-31 08:10:36 +0000 | |
commit | 3d65eb97d2244e8709b338beef3807edefa57ff5 (patch) | |
tree | c5acd0218dd8320d28ca7933aadc1e4c37bf29f3 /src/main/java/com/google/devtools/build/lib/rules/cpp | |
parent | 44ba39b77a0f20cc6a763ebdc328dfeb4fe82f34 (diff) |
Do not load the transitive closure of the Android SDK on every build.
This makes the sanity check dependent on the configuration fragments returning proper roots, but it's not that bad because it already depends on them returning the proper set of implicit labels and #getImplicitLabels() will go away soon anyway.
--
MOS_MIGRATED_REVID=131705535
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/cpp')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java index e9a89c782c..87e3e97ca0 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java @@ -2002,6 +2002,17 @@ public class CppConfiguration extends BuildConfiguration.Fragment { } @Override + public Iterable<Label> getSanityCheckRoots() { + ImmutableList.Builder<Label> result = ImmutableList.builder(); + result.add(cppOptions.crosstoolTop); + if (cppOptions.libcTop != null) { + result.add(cppOptions.libcTop.getLabel()); + } + + return result.build(); + } + + @Override public String getOutputDirectoryName() { String lipoSuffix; if (getLipoMode() != LipoMode.OFF && !isAutoFdoLipo()) { |