From 181010eeb9535003cc934050a89fa76700f7e60e Mon Sep 17 00:00:00 2001 From: Chris Parsons Date: Wed, 18 Nov 2015 22:39:48 +0000 Subject: Propagate apple platform environment variables for CppCompileAction -- MOS_MIGRATED_REVID=108182745 --- .../lib/bazel/rules/cpp/BazelCppRuleClasses.java | 5 ++- .../build/lib/rules/apple/AppleConfiguration.java | 38 ++++++++++++++--- .../devtools/build/lib/rules/apple/Platform.java | 48 +++++++++++++++++++++- .../build/lib/rules/cpp/CppCompileAction.java | 16 ++++++++ 4 files changed, 99 insertions(+), 8 deletions(-) (limited to 'src/main') 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 e4268a2976..bddfc81a53 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 @@ -59,6 +59,7 @@ import com.google.devtools.build.lib.packages.RuleClass; import com.google.devtools.build.lib.packages.RuleClass.Builder; import com.google.devtools.build.lib.packages.RuleClass.Builder.RuleClassType; import com.google.devtools.build.lib.packages.TriState; +import com.google.devtools.build.lib.rules.apple.AppleConfiguration; import com.google.devtools.build.lib.rules.cpp.CppConfiguration; import com.google.devtools.build.lib.rules.cpp.CppFileTypes; import com.google.devtools.build.lib.rules.cpp.CppRuleClasses; @@ -609,7 +610,7 @@ public class BazelCppRuleClasses { @Override public RuleClass build(Builder builder, RuleDefinitionEnvironment env) { return builder - .requiresConfigurationFragments(CppConfiguration.class) + .requiresConfigurationFragments(CppConfiguration.class, AppleConfiguration.class) /*