aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar cparsons <cparsons@google.com>2017-06-02 13:42:16 -0400
committerGravatar John Cater <jcater@google.com>2017-06-05 10:18:37 -0400
commit4981dae7ef99b8ae8574ae570650c009b1f085c9 (patch)
treeb231d5f95915d4e8e9358db7f5caf5e32f84410b /src
parent18dc43f1e11f61fd0c3f70e7b198e536d86c82e5 (diff)
Set host apple platform type to MACOS
RELNOTES: None. PiperOrigin-RevId: 157847930
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java b/src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java
index 23977e16b0..3e5e1e22f6 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java
@@ -439,6 +439,10 @@ public class AppleCommandLineOptions extends FragmentOptions {
host.tvOsSdkVersion = tvOsSdkVersion;
host.macOsSdkVersion = macOsSdkVersion;
host.appleBitcodeMode = appleBitcodeMode;
+ // The host apple platform type will always be MACOS, as no other apple platform type can
+ // currently execute build actions. If that were the case, a host_apple_platform_type flag might
+ // be needed.
+ host.applePlatformType = PlatformType.MACOS;
return host;
}