From c5442570ecba9a540a552825c8aed7ac9c62c321 Mon Sep 17 00:00:00 2001 From: bbaren Date: Wed, 15 Aug 2018 13:58:00 -0700 Subject: Always use exactly two components in Xcode version feature When setting the standard Xcode version feature (see commit eb952d08f76afa907bb34eaf7e1a69899102c523), always use exactly two components for the version number. Grouping all point releases together simplifies writing CROSSTOOLs. Also fix a bug in MockObjcSupport that prevented Xcode version selection in tests from working properly. RELNOTES: The standard `xcode_VERSION` feature now always uses exactly two components in the version, even if you specify `--xcode_version` with more or fewer than two. PiperOrigin-RevId: 208877588 --- .../build/lib/packages/util/MOCK_OSX_CROSSTOOL | 360 +++++++++++++++++++++ 1 file changed, 360 insertions(+) (limited to 'src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL') diff --git a/src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL b/src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL index 0986112da4..9bd8202eb5 100644 --- a/src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL +++ b/src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL @@ -647,6 +647,21 @@ toolchain { } } } + feature { + name: "xcode_5.0" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_5.0" + } + } + } feature { name: "xcode_5.8" flag_set { @@ -662,6 +677,21 @@ toolchain { } } } + feature { + name: "xcode_7.3" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_7.3" + } + } + } feature { name: "framework_paths" flag_set { @@ -2388,6 +2418,21 @@ toolchain { } } } + feature { + name: "xcode_5.0" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_5.0" + } + } + } feature { name: "xcode_5.8" flag_set { @@ -2403,6 +2448,21 @@ toolchain { } } } + feature { + name: "xcode_7.3" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_7.3" + } + } + } feature { name: "framework_paths" flag_set { @@ -4124,6 +4184,21 @@ toolchain { } } } + feature { + name: "xcode_5.0" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_5.0" + } + } + } feature { name: "xcode_5.8" flag_set { @@ -4139,6 +4214,21 @@ toolchain { } } } + feature { + name: "xcode_7.3" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_7.3" + } + } + } feature { name: "framework_paths" flag_set { @@ -5860,6 +5950,21 @@ toolchain { } } } + feature { + name: "xcode_5.0" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_5.0" + } + } + } feature { name: "xcode_5.8" flag_set { @@ -5875,6 +5980,21 @@ toolchain { } } } + feature { + name: "xcode_7.3" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_7.3" + } + } + } feature { name: "framework_paths" flag_set { @@ -7600,6 +7720,21 @@ toolchain { } } } + feature { + name: "xcode_5.0" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_5.0" + } + } + } feature { name: "xcode_5.8" flag_set { @@ -7615,6 +7750,21 @@ toolchain { } } } + feature { + name: "xcode_7.3" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_7.3" + } + } + } feature { name: "framework_paths" flag_set { @@ -9346,6 +9496,21 @@ toolchain { } } } + feature { + name: "xcode_5.0" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_5.0" + } + } + } feature { name: "xcode_5.8" flag_set { @@ -9361,6 +9526,21 @@ toolchain { } } } + feature { + name: "xcode_7.3" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_7.3" + } + } + } feature { name: "framework_paths" flag_set { @@ -11095,6 +11275,21 @@ toolchain { } } } + feature { + name: "xcode_5.0" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_5.0" + } + } + } feature { name: "xcode_5.8" flag_set { @@ -11110,6 +11305,21 @@ toolchain { } } } + feature { + name: "xcode_7.3" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_7.3" + } + } + } feature { name: "framework_paths" flag_set { @@ -12871,6 +13081,21 @@ toolchain { } } } + feature { + name: "xcode_5.0" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_5.0" + } + } + } feature { name: "xcode_5.8" flag_set { @@ -12886,6 +13111,21 @@ toolchain { } } } + feature { + name: "xcode_7.3" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_7.3" + } + } + } feature { name: "framework_paths" flag_set { @@ -14617,6 +14857,21 @@ toolchain { } } } + feature { + name: "xcode_5.0" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_5.0" + } + } + } feature { name: "xcode_5.8" flag_set { @@ -14632,6 +14887,21 @@ toolchain { } } } + feature { + name: "xcode_7.3" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_7.3" + } + } + } feature { name: "framework_paths" flag_set { @@ -16383,6 +16653,21 @@ toolchain { } } } + feature { + name: "xcode_5.0" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_5.0" + } + } + } feature { name: "xcode_5.8" flag_set { @@ -16398,6 +16683,21 @@ toolchain { } } } + feature { + name: "xcode_7.3" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_7.3" + } + } + } feature { name: "framework_paths" flag_set { @@ -18152,6 +18452,21 @@ toolchain { } } } + feature { + name: "xcode_5.0" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_5.0" + } + } + } feature { name: "xcode_5.8" flag_set { @@ -18167,6 +18482,21 @@ toolchain { } } } + feature { + name: "xcode_7.3" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_7.3" + } + } + } feature { name: "framework_paths" flag_set { @@ -19948,6 +20278,21 @@ toolchain { } } } + feature { + name: "xcode_5.0" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_5.0" + } + } + } feature { name: "xcode_5.8" flag_set { @@ -19963,6 +20308,21 @@ toolchain { } } } + feature { + name: "xcode_7.3" + flag_set { + action: "preprocess-assemble" + action: "c-compile" + action: "c++-compile" + action: "c++-header-parsing" + action: "c++-header-preprocessing" + action: "objc-compile" + action: "objc++-compile" + flag_group { + flag: "-DXCODE_FEATURE_FOR_TESTING=xcode_7.3" + } + } + } feature { name: "framework_paths" flag_set { -- cgit v1.2.3