diff options
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()) { |