diff options
author | 2015-08-03 13:50:43 +0000 | |
---|---|---|
committer | 2015-08-04 09:08:13 +0000 | |
commit | 00e1ac9f1aa0ef64dcc5be0d9815f6b0f31a27d0 (patch) | |
tree | 73750015b0b1920280c542257f1eaaba4c42657c /src | |
parent | b8634721b2446a895729d48d92bee230769078ae (diff) |
Add configuration fragment annotations to some cc_* rules.
--
MOS_MIGRATED_REVID=99720083
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java index 912ed77d7b..63c485ef0f 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java @@ -626,6 +626,8 @@ public class BazelCppRuleClasses { @Override public RuleClass build(Builder builder, RuleDefinitionEnvironment env) { return builder + .requiresConfigurationFragments(CppConfiguration.class) + .failIfMissingConfigurationFragment() /*<!-- #BLAZE_RULE(cc_binary).IMPLICIT_OUTPUTS --> <ul> <li><code><var>name</var>.stripped</code> (only built if explicitly requested): A stripped @@ -770,6 +772,8 @@ public class BazelCppRuleClasses { // TODO: Google cc_library overrides documentation for: // deps, data, linkopts, defines, srcs; override here too? + .requiresConfigurationFragments(CppConfiguration.class) + .failIfMissingConfigurationFragment() /*<!-- #BLAZE_RULE(cc_library).ATTRIBUTE(alwayslink) --> If 1, any binary that depends (directly or indirectly) on this C++ library will link in all the object files for the files listed in |