| commit | 320aee817b938c0928369a875148031c5fd6867a | [log] [tgz] |
|---|---|---|
| author | jcater <jcater@google.com> | Thu Apr 26 23:15:12 2018 -0700 |
| committer | Copybara-Service <copybara-piper@google.com> | Thu Apr 26 23:16:10 2018 -0700 |
| tree | edd4b08e767e5773cd61bd22c91658f695a31ab3 | |
| parent | 1f22fa98880a1c1d02dcab629a885ffb9516a29f [diff] |
Ensure that all rules which (even very indirectly) call CppHelper.getToolchainFromPlatformConstraints declare that they require a cc toolchain. PiperOrigin-RevId: 194504473
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcImportRule.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcImportRule.java index deb229d..de08305 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcImportRule.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcImportRule.java
@@ -100,6 +100,7 @@ .cfg(env.getLipoDataTransition()) .allowedFileTypes(FileTypeSet.ANY_FILE) .dontCheckConstraints()) + .addRequiredToolchains(CppRuleClasses.ccToolchainTypeAttribute(env)) .build(); }