aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/apple
diff options
context:
space:
mode:
authorGravatar Cal Peyser <cpeyser@google.com>2017-02-22 23:27:47 +0000
committerGravatar Yue Gan <yueg@google.com>2017-02-23 11:31:27 +0000
commit766a581ac53f9a45207aabfc149cbc39c2539d3c (patch)
treea1093d21c3e7ad0dfc2c9ee6ccf8990eb58bdb76 /src/main/java/com/google/devtools/build/lib/rules/apple
parent3611fb2d7c075604375258df7c260d3e41e4c42e (diff)
APPLE_CROSSTOOL distinguisher is not applied if --apple_crosstool_transition is true.
-- PiperOrigin-RevId: 148277221 MOS_MIGRATED_REVID=148277221
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/apple')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/apple/AppleCommandLineOptions.java8
1 files changed, 8 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 bba468d3a2..7438c3a52f 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
@@ -278,6 +278,14 @@ public class AppleCommandLineOptions extends FragmentOptions {
)
public boolean enableAppleCrosstoolTransition;
+ @Option(
+ name = "target_uses_apple_crosstool",
+ defaultValue = "false",
+ category = "undocumented",
+ help = "If true, this target uses the apple crosstool. Do not set this flag manually."
+ )
+ public boolean targetUsesAppleCrosstool;
+
private Platform getPlatform() {
for (String architecture : iosMultiCpus) {
if (Platform.forTarget(PlatformType.IOS, architecture) == Platform.IOS_DEVICE) {