diff options
author | 2017-03-15 22:41:58 +0000 | |
---|---|---|
committer | 2017-03-16 08:37:54 +0000 | |
commit | d43d7cd12eb52911d7d68cf22f9b442468dfb7f4 (patch) | |
tree | bb1fe3c566553963c088a49882851b5fd607b2d2 /src/main/java/com/google/devtools/build/lib/rules/objc | |
parent | 461829a10c91ef0bbcf3855c11bfa634de29e19a (diff) |
Fix some bugs preventing the crosstool from making use of the min_version for darwin builds.
--
PiperOrigin-RevId: 150252792
MOS_MIGRATED_REVID=150252792
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/AppleCrosstoolTransition.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/AppleCrosstoolTransition.java b/src/main/java/com/google/devtools/build/lib/rules/objc/AppleCrosstoolTransition.java index 59cf36aa98..2c3ed33245 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/AppleCrosstoolTransition.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/AppleCrosstoolTransition.java @@ -19,6 +19,7 @@ import com.google.devtools.build.lib.analysis.config.BuildConfiguration; import com.google.devtools.build.lib.analysis.config.BuildOptions; import com.google.devtools.build.lib.analysis.config.PatchTransition; import com.google.devtools.build.lib.rules.apple.AppleCommandLineOptions; +import com.google.devtools.build.lib.rules.apple.Platform; import com.google.devtools.build.lib.rules.cpp.CppOptions; import com.google.devtools.build.lib.rules.objc.ObjcCommandLineOptions.ObjcCrosstoolMode; @@ -48,10 +49,9 @@ public class AppleCrosstoolTransition implements PatchTransition { // TODO(b/29355778): Once ios_cpu is retired, introduce another top-level flag (perhaps // --apple_cpu) for toolchain selection in top-level consuming rules. - String cpu = String.format("%s_%s", + String cpu = Platform.cpuStringForTarget( buildOptions.get(AppleCommandLineOptions.class).applePlatformType, buildOptions.get(AppleCommandLineOptions.class).getSingleArchitecture()); - setAppleCrosstoolTransitionConfiguration(buildOptions, result, cpu); return result; } |