diff options
author | 2018-04-16 04:24:02 -0700 | |
---|---|---|
committer | 2018-04-16 04:25:49 -0700 | |
commit | ecbab79b7bc982e5b60b09203607ab6a4d066294 (patch) | |
tree | 2d36d35b2d85e190d8fbae55a3892831ebf95eb3 /src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java | |
parent | ef247efab4526547e12161b1d74cb624c0e0bd71 (diff) |
Push using ruleContext.getDisabledFeatures() outside of creating FeatureConfiguration
The goal is to enable creation of feature configuration without the rule
context. This will enable us to have cleaner API for this in Skylark.
RELNOTES: None
PiperOrigin-RevId: 193017868
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java index 5e79a11e18..5a562a31d4 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java @@ -223,7 +223,7 @@ public abstract class CcBinary implements RuleConfiguredTargetFactory { linkStaticness == LinkStaticness.DYNAMIC ? DYNAMIC_LINKING_MODE : STATIC_LINKING_MODE), - /* unsupportedFeatures= */ ImmutableSet.of(), + /* unsupportedFeatures= */ ruleContext.getDisabledFeatures(), ccToolchain); CcCompilationHelper compilationHelper = |