aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/packages/util/MockObjcSupport.java
diff options
context:
space:
mode:
authorGravatar cparsons <cparsons@google.com>2017-09-05 21:43:45 +0200
committerGravatar Yun Peng <pcloudy@google.com>2017-09-06 10:10:19 +0200
commit96d4e4ad112a9383bae25c5a44355bdca51a35b8 (patch)
treed1a4a71a06608f0ab935fee21d68f657adc2b37f /src/test/java/com/google/devtools/build/lib/packages/util/MockObjcSupport.java
parent6201011165ddc42f22b4ee8718070b4bd58783ad (diff)
Change xcode_config rule semantics to fit current usage
- require_defined_versions is deprecated and a no-op. A version must match existing defined versions if any exist - default label must be present in versions labels if any are defined - default label may not exist if no versions are defined - when --xcode_version is specified on the command line, it must match a defined version if any are defined. If none are defined, this flag is a no-op RELNOTES: None. PiperOrigin-RevId: 167616628
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/packages/util/MockObjcSupport.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/packages/util/MockObjcSupport.java16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/packages/util/MockObjcSupport.java b/src/test/java/com/google/devtools/build/lib/packages/util/MockObjcSupport.java
index 73f9e9b491..d42f6f720a 100644
--- a/src/test/java/com/google/devtools/build/lib/packages/util/MockObjcSupport.java
+++ b/src/test/java/com/google/devtools/build/lib/packages/util/MockObjcSupport.java
@@ -97,12 +97,26 @@ public final class MockObjcSupport {
String.format(
" srcs = ['%s//objcproto:well_known_type.proto'],", TestConstants.TOOLS_REPOSITORY),
")",
- "xcode_config(name = 'host_xcodes', default = ':version7_3_1')",
+ "xcode_config(name = 'host_xcodes',",
+ " default = ':version7_3_1',",
+ " versions = [':version7_3_1', 'version5_0', 'version7_3', 'version5_8'])",
"xcode_version(",
" name = 'version7_3_1',",
" version = '" + DEFAULT_XCODE_VERSION + "',",
" default_ios_sdk_version = \"" + DEFAULT_IOS_SDK_VERSION + "\",",
")",
+ "xcode_version(",
+ " name = 'version7_3',",
+ " version = '7.3',",
+ ")",
+ "xcode_version(",
+ " name = 'version5_0',",
+ " version = '5.0',",
+ ")",
+ "xcode_version(",
+ " name = 'version5_8',",
+ " version = '5.8',",
+ ")",
"objc_library(name = 'dummy_lib', srcs = ['objc_dummy.mm'])");
// If the bazel tools repository is not in the workspace, also create a workspace tools/objc
// package with a few lingering dependencies.