diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/objc')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java b/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java index f7e7a4a401..40938048a1 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java @@ -553,8 +553,11 @@ public class CompilationSupport { // next release. activatedCrosstoolSelectables.add(NO_DSYM_ZIPS_FEATURE_NAME); + // Add a feature identifying the Xcode version so CROSSTOOL authors can enable flags for + // particular versions of Xcode. To ensure consistency across platforms, use exactly two + // components in the version number. activatedCrosstoolSelectables.add(XCODE_VERSION_FEATURE_NAME_PREFIX - + XcodeConfig.getXcodeVersion(ruleContext).toStringWithMinimumComponents(2)); + + XcodeConfig.getXcodeVersion(ruleContext).toStringWithComponents(2)); activatedCrosstoolSelectables.addAll(ruleContext.getFeatures()); |