aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL
diff options
context:
space:
mode:
authorGravatar hlopko <hlopko@google.com>2017-09-22 10:14:33 -0400
committerGravatar John Cater <jcater@google.com>2017-09-25 09:36:06 -0400
commit3c23d3eae64b51d8367d5d586f0a41128eb96174 (patch)
treebc9dbb0ab30487290d1026e56f102df9be1de20b /src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL
parent51c8c7cfb2bffcc4d95a19680fbec08d3625a74e (diff)
Use FeatureConfiguration to compute linkstamping compile command line
Before, linkstamping compile actions were hardcoded in bazel and assumed gcc/clang and bash. This cl removes gcc/clang assumptions by using feature configuration. RELNOTES: None. PiperOrigin-RevId: 169685949
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL')
-rw-r--r--src/test/java/com/google/devtools/build/lib/packages/util/MOCK_OSX_CROSSTOOL540
1 files changed, 540 insertions, 0 deletions
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 7aedc55922..8287985c6f 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
@@ -931,6 +931,28 @@ toolchain {
}
}
feature {
+ name: "includes"
+ flag_set {
+ action: "preprocess-assemble"
+ action: "linkstamp-compile"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-header-preprocessing"
+ action: "c++-module-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ action: "clif-match"
+ flag_group {
+ flag: "-include"
+ flag: "%{includes}"
+ iterate_over: "includes"
+ expand_if_all_available: "includes"
+ }
+ }
+ enabled: true
+ }
+ feature {
name: "include_paths"
flag_set {
action: "preprocess-assemble"
@@ -1349,6 +1371,29 @@ toolchain {
implies: "unfiltered_compile_flags"
}
action_config {
+ config_name: "linkstamp-compile"
+ action_name: "linkstamp-compile"
+ tool {
+ tool_path: "mac/wrapped_clang"
+ execution_requirement: "requires-darwin"
+ }
+ flag_set {
+ flag_group {
+ flag: "-arch x86_64"
+ }
+ }
+ implies: "preprocessor_defines"
+ implies: "include_system_dirs"
+ implies: "version_min"
+ implies: "objc_arc"
+ implies: "no_objc_arc"
+ implies: "apple_env"
+ implies: "legacy_compile_flags"
+ implies: "user_compile_flags"
+ implies: "sysroot"
+ implies: "unfiltered_compile_flags"
+ }
+ action_config {
config_name: "c++-module-compile"
action_name: "c++-module-compile"
tool {
@@ -2659,6 +2704,28 @@ toolchain {
}
}
feature {
+ name: "includes"
+ flag_set {
+ action: "preprocess-assemble"
+ action: "linkstamp-compile"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-header-preprocessing"
+ action: "c++-module-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ action: "clif-match"
+ flag_group {
+ flag: "-include"
+ flag: "%{includes}"
+ iterate_over: "includes"
+ expand_if_all_available: "includes"
+ }
+ }
+ enabled: true
+ }
+ feature {
name: "include_paths"
flag_set {
action: "preprocess-assemble"
@@ -3077,6 +3144,29 @@ toolchain {
implies: "unfiltered_compile_flags"
}
action_config {
+ config_name: "linkstamp-compile"
+ action_name: "linkstamp-compile"
+ tool {
+ tool_path: "mac/wrapped_clang"
+ execution_requirement: "requires-darwin"
+ }
+ flag_set {
+ flag_group {
+ flag: "-arch x86_64"
+ }
+ }
+ implies: "preprocessor_defines"
+ implies: "include_system_dirs"
+ implies: "version_min"
+ implies: "objc_arc"
+ implies: "no_objc_arc"
+ implies: "apple_env"
+ implies: "legacy_compile_flags"
+ implies: "user_compile_flags"
+ implies: "sysroot"
+ implies: "unfiltered_compile_flags"
+ }
+ action_config {
config_name: "c++-module-compile"
action_name: "c++-module-compile"
tool {
@@ -4382,6 +4472,28 @@ toolchain {
}
}
feature {
+ name: "includes"
+ flag_set {
+ action: "preprocess-assemble"
+ action: "linkstamp-compile"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-header-preprocessing"
+ action: "c++-module-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ action: "clif-match"
+ flag_group {
+ flag: "-include"
+ flag: "%{includes}"
+ iterate_over: "includes"
+ expand_if_all_available: "includes"
+ }
+ }
+ enabled: true
+ }
+ feature {
name: "include_paths"
flag_set {
action: "preprocess-assemble"
@@ -4800,6 +4912,29 @@ toolchain {
implies: "unfiltered_compile_flags"
}
action_config {
+ config_name: "linkstamp-compile"
+ action_name: "linkstamp-compile"
+ tool {
+ tool_path: "mac/wrapped_clang"
+ execution_requirement: "requires-darwin"
+ }
+ flag_set {
+ flag_group {
+ flag: "-arch x86_64"
+ }
+ }
+ implies: "preprocessor_defines"
+ implies: "include_system_dirs"
+ implies: "version_min"
+ implies: "objc_arc"
+ implies: "no_objc_arc"
+ implies: "apple_env"
+ implies: "legacy_compile_flags"
+ implies: "user_compile_flags"
+ implies: "sysroot"
+ implies: "unfiltered_compile_flags"
+ }
+ action_config {
config_name: "c++-module-compile"
action_name: "c++-module-compile"
tool {
@@ -6105,6 +6240,28 @@ toolchain {
}
}
feature {
+ name: "includes"
+ flag_set {
+ action: "preprocess-assemble"
+ action: "linkstamp-compile"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-header-preprocessing"
+ action: "c++-module-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ action: "clif-match"
+ flag_group {
+ flag: "-include"
+ flag: "%{includes}"
+ iterate_over: "includes"
+ expand_if_all_available: "includes"
+ }
+ }
+ enabled: true
+ }
+ feature {
name: "include_paths"
flag_set {
action: "preprocess-assemble"
@@ -6523,6 +6680,29 @@ toolchain {
implies: "unfiltered_compile_flags"
}
action_config {
+ config_name: "linkstamp-compile"
+ action_name: "linkstamp-compile"
+ tool {
+ tool_path: "mac/wrapped_clang"
+ execution_requirement: "requires-darwin"
+ }
+ flag_set {
+ flag_group {
+ flag: "-arch x86_64"
+ }
+ }
+ implies: "preprocessor_defines"
+ implies: "include_system_dirs"
+ implies: "version_min"
+ implies: "objc_arc"
+ implies: "no_objc_arc"
+ implies: "apple_env"
+ implies: "legacy_compile_flags"
+ implies: "user_compile_flags"
+ implies: "sysroot"
+ implies: "unfiltered_compile_flags"
+ }
+ action_config {
config_name: "c++-module-compile"
action_name: "c++-module-compile"
tool {
@@ -7832,6 +8012,28 @@ toolchain {
}
}
feature {
+ name: "includes"
+ flag_set {
+ action: "preprocess-assemble"
+ action: "linkstamp-compile"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-header-preprocessing"
+ action: "c++-module-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ action: "clif-match"
+ flag_group {
+ flag: "-include"
+ flag: "%{includes}"
+ iterate_over: "includes"
+ expand_if_all_available: "includes"
+ }
+ }
+ enabled: true
+ }
+ feature {
name: "include_paths"
flag_set {
action: "preprocess-assemble"
@@ -8254,6 +8456,29 @@ toolchain {
implies: "unfiltered_compile_flags"
}
action_config {
+ config_name: "linkstamp-compile"
+ action_name: "linkstamp-compile"
+ tool {
+ tool_path: "iossim/wrapped_clang"
+ execution_requirement: "requires-darwin"
+ }
+ flag_set {
+ flag_group {
+ flag: "-arch x86_64"
+ }
+ }
+ implies: "preprocessor_defines"
+ implies: "include_system_dirs"
+ implies: "version_min"
+ implies: "objc_arc"
+ implies: "no_objc_arc"
+ implies: "apple_env"
+ implies: "legacy_compile_flags"
+ implies: "user_compile_flags"
+ implies: "sysroot"
+ implies: "unfiltered_compile_flags"
+ }
+ action_config {
config_name: "c++-module-compile"
action_name: "c++-module-compile"
tool {
@@ -9567,6 +9792,28 @@ toolchain {
}
}
feature {
+ name: "includes"
+ flag_set {
+ action: "preprocess-assemble"
+ action: "linkstamp-compile"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-header-preprocessing"
+ action: "c++-module-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ action: "clif-match"
+ flag_group {
+ flag: "-include"
+ flag: "%{includes}"
+ iterate_over: "includes"
+ expand_if_all_available: "includes"
+ }
+ }
+ enabled: true
+ }
+ feature {
name: "include_paths"
flag_set {
action: "preprocess-assemble"
@@ -9989,6 +10236,29 @@ toolchain {
implies: "unfiltered_compile_flags"
}
action_config {
+ config_name: "linkstamp-compile"
+ action_name: "linkstamp-compile"
+ tool {
+ tool_path: "watchsim/wrapped_clang"
+ execution_requirement: "requires-darwin"
+ }
+ flag_set {
+ flag_group {
+ flag: "-arch i386"
+ }
+ }
+ implies: "preprocessor_defines"
+ implies: "include_system_dirs"
+ implies: "version_min"
+ implies: "objc_arc"
+ implies: "no_objc_arc"
+ implies: "apple_env"
+ implies: "legacy_compile_flags"
+ implies: "user_compile_flags"
+ implies: "sysroot"
+ implies: "unfiltered_compile_flags"
+ }
+ action_config {
config_name: "c++-module-compile"
action_name: "c++-module-compile"
tool {
@@ -11301,6 +11571,28 @@ toolchain {
}
}
feature {
+ name: "includes"
+ flag_set {
+ action: "preprocess-assemble"
+ action: "linkstamp-compile"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-header-preprocessing"
+ action: "c++-module-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ action: "clif-match"
+ flag_group {
+ flag: "-include"
+ flag: "%{includes}"
+ iterate_over: "includes"
+ expand_if_all_available: "includes"
+ }
+ }
+ enabled: true
+ }
+ feature {
name: "include_paths"
flag_set {
action: "preprocess-assemble"
@@ -11749,6 +12041,29 @@ toolchain {
implies: "unfiltered_cxx_flags"
}
action_config {
+ config_name: "linkstamp-compile"
+ action_name: "linkstamp-compile"
+ tool {
+ tool_path: "tvsim/wrapped_clang"
+ execution_requirement: "requires-darwin"
+ }
+ flag_set {
+ flag_group {
+ flag: "-arch x86_64"
+ }
+ }
+ implies: "preprocessor_defines"
+ implies: "include_system_dirs"
+ implies: "version_min"
+ implies: "objc_arc"
+ implies: "no_objc_arc"
+ implies: "apple_env"
+ implies: "legacy_compile_flags"
+ implies: "user_compile_flags"
+ implies: "sysroot"
+ implies: "unfiltered_compile_flags"
+ }
+ action_config {
config_name: "c++-module-compile"
action_name: "c++-module-compile"
tool {
@@ -13065,6 +13380,28 @@ toolchain {
}
}
feature {
+ name: "includes"
+ flag_set {
+ action: "preprocess-assemble"
+ action: "linkstamp-compile"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-header-preprocessing"
+ action: "c++-module-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ action: "clif-match"
+ flag_group {
+ flag: "-include"
+ flag: "%{includes}"
+ iterate_over: "includes"
+ expand_if_all_available: "includes"
+ }
+ }
+ enabled: true
+ }
+ feature {
name: "include_paths"
flag_set {
action: "preprocess-assemble"
@@ -13487,6 +13824,29 @@ toolchain {
implies: "unfiltered_compile_flags"
}
action_config {
+ config_name: "linkstamp-compile"
+ action_name: "linkstamp-compile"
+ tool {
+ tool_path: "iossim/wrapped_clang"
+ execution_requirement: "requires-darwin"
+ }
+ flag_set {
+ flag_group {
+ flag: "-arch i386"
+ }
+ }
+ implies: "preprocessor_defines"
+ implies: "include_system_dirs"
+ implies: "version_min"
+ implies: "objc_arc"
+ implies: "no_objc_arc"
+ implies: "apple_env"
+ implies: "legacy_compile_flags"
+ implies: "user_compile_flags"
+ implies: "sysroot"
+ implies: "unfiltered_compile_flags"
+ }
+ action_config {
config_name: "c++-module-compile"
action_name: "c++-module-compile"
tool {
@@ -14798,6 +15158,28 @@ toolchain {
}
}
feature {
+ name: "includes"
+ flag_set {
+ action: "preprocess-assemble"
+ action: "linkstamp-compile"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-header-preprocessing"
+ action: "c++-module-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ action: "clif-match"
+ flag_group {
+ flag: "-include"
+ flag: "%{includes}"
+ iterate_over: "includes"
+ expand_if_all_available: "includes"
+ }
+ }
+ enabled: true
+ }
+ feature {
name: "include_paths"
flag_set {
action: "preprocess-assemble"
@@ -15242,6 +15624,29 @@ toolchain {
implies: "unfiltered_compile_flags"
}
action_config {
+ config_name: "linkstamp-compile"
+ action_name: "linkstamp-compile"
+ tool {
+ tool_path: "ios/wrapped_clang"
+ execution_requirement: "requires-darwin"
+ }
+ flag_set {
+ flag_group {
+ flag: "-arch armv7"
+ }
+ }
+ implies: "preprocessor_defines"
+ implies: "include_system_dirs"
+ implies: "version_min"
+ implies: "objc_arc"
+ implies: "no_objc_arc"
+ implies: "apple_env"
+ implies: "legacy_compile_flags"
+ implies: "user_compile_flags"
+ implies: "sysroot"
+ implies: "unfiltered_compile_flags"
+ }
+ action_config {
config_name: "c++-module-compile"
action_name: "c++-module-compile"
tool {
@@ -16553,6 +16958,28 @@ toolchain {
}
}
feature {
+ name: "includes"
+ flag_set {
+ action: "preprocess-assemble"
+ action: "linkstamp-compile"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-header-preprocessing"
+ action: "c++-module-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ action: "clif-match"
+ flag_group {
+ flag: "-include"
+ flag: "%{includes}"
+ iterate_over: "includes"
+ expand_if_all_available: "includes"
+ }
+ }
+ enabled: true
+ }
+ feature {
name: "include_paths"
flag_set {
action: "preprocess-assemble"
@@ -16997,6 +17424,29 @@ toolchain {
implies: "unfiltered_compile_flags"
}
action_config {
+ config_name: "linkstamp-compile"
+ action_name: "linkstamp-compile"
+ tool {
+ tool_path: "watchos/wrapped_clang"
+ execution_requirement: "requires-darwin"
+ }
+ flag_set {
+ flag_group {
+ flag: "-arch armv7k"
+ }
+ }
+ implies: "preprocessor_defines"
+ implies: "include_system_dirs"
+ implies: "version_min"
+ implies: "objc_arc"
+ implies: "no_objc_arc"
+ implies: "apple_env"
+ implies: "legacy_compile_flags"
+ implies: "user_compile_flags"
+ implies: "sysroot"
+ implies: "unfiltered_compile_flags"
+ }
+ action_config {
config_name: "c++-module-compile"
action_name: "c++-module-compile"
tool {
@@ -18307,6 +18757,28 @@ toolchain {
}
}
feature {
+ name: "includes"
+ flag_set {
+ action: "preprocess-assemble"
+ action: "linkstamp-compile"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-header-preprocessing"
+ action: "c++-module-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ action: "clif-match"
+ flag_group {
+ flag: "-include"
+ flag: "%{includes}"
+ iterate_over: "includes"
+ expand_if_all_available: "includes"
+ }
+ }
+ enabled: true
+ }
+ feature {
name: "include_paths"
flag_set {
action: "preprocess-assemble"
@@ -18777,6 +19249,29 @@ toolchain {
implies: "unfiltered_cxx_flags"
}
action_config {
+ config_name: "linkstamp-compile"
+ action_name: "linkstamp-compile"
+ tool {
+ tool_path: "tvos/wrapped_clang"
+ execution_requirement: "requires-darwin"
+ }
+ flag_set {
+ flag_group {
+ flag: "-arch arm64"
+ }
+ }
+ implies: "preprocessor_defines"
+ implies: "include_system_dirs"
+ implies: "version_min"
+ implies: "objc_arc"
+ implies: "no_objc_arc"
+ implies: "apple_env"
+ implies: "legacy_compile_flags"
+ implies: "user_compile_flags"
+ implies: "sysroot"
+ implies: "unfiltered_compile_flags"
+ }
+ action_config {
config_name: "c++-module-compile"
action_name: "c++-module-compile"
tool {
@@ -20091,6 +20586,28 @@ toolchain {
}
}
feature {
+ name: "includes"
+ flag_set {
+ action: "preprocess-assemble"
+ action: "linkstamp-compile"
+ action: "c-compile"
+ action: "c++-compile"
+ action: "c++-header-parsing"
+ action: "c++-header-preprocessing"
+ action: "c++-module-compile"
+ action: "objc-compile"
+ action: "objc++-compile"
+ action: "clif-match"
+ flag_group {
+ flag: "-include"
+ flag: "%{includes}"
+ iterate_over: "includes"
+ expand_if_all_available: "includes"
+ }
+ }
+ enabled: true
+ }
+ feature {
name: "include_paths"
flag_set {
action: "preprocess-assemble"
@@ -20535,6 +21052,29 @@ toolchain {
implies: "unfiltered_compile_flags"
}
action_config {
+ config_name: "linkstamp-compile"
+ action_name: "linkstamp-compile"
+ tool {
+ tool_path: "ios/wrapped_clang"
+ execution_requirement: "requires-darwin"
+ }
+ flag_set {
+ flag_group {
+ flag: "-arch arm64"
+ }
+ }
+ implies: "preprocessor_defines"
+ implies: "include_system_dirs"
+ implies: "version_min"
+ implies: "objc_arc"
+ implies: "no_objc_arc"
+ implies: "apple_env"
+ implies: "legacy_compile_flags"
+ implies: "user_compile_flags"
+ implies: "sysroot"
+ implies: "unfiltered_compile_flags"
+ }
+ action_config {
config_name: "c++-module-compile"
action_name: "c++-module-compile"
tool {