From 88cdc9438eb33a3d93d57e16e825568668cdd385 Mon Sep 17 00:00:00 2001 From: rosica Date: Tue, 7 May 2019 07:13:05 -0700 Subject: [PATCH] Remove unsupported cpu attribute from cc_toolchains. Fixes #8236 Issue #7075 RELNOTES: None. PiperOrigin-RevId: 247014090 --- tools/cpp/BUILD | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/tools/cpp/BUILD b/tools/cpp/BUILD index d84818fc44adbc..216ba1acbe8993 100644 --- a/tools/cpp/BUILD +++ b/tools/cpp/BUILD @@ -114,7 +114,6 @@ cc_toolchain( ar_files = ":empty", as_files = ":empty", compiler_files = ":empty", - cpu = "local", dwp_files = ":empty", linker_files = ":empty", objcopy_files = ":empty", @@ -146,7 +145,6 @@ cc_toolchain( ar_files = ":empty", as_files = ":empty", compiler_files = ":empty", - cpu = "ppc", dwp_files = ":empty", linker_files = ":empty", objcopy_files = ":empty", @@ -168,13 +166,39 @@ toolchain( toolchain_type = ":toolchain_type", ) +cc_toolchain( + name = "cc-compiler-s390x", + all_files = ":empty", + ar_files = ":empty", + as_files = ":empty", + compiler_files = ":empty", + dwp_files = ":empty", + linker_files = ":empty", + objcopy_files = ":empty", + strip_files = ":empty", + supports_param_files = 1, + toolchain_config = ":local_linux", + toolchain_identifier = "local_linux", +) + +toolchain( + name = "cc-toolchain-s390x", + exec_compatible_with = [ + "@bazel_tools//platforms:s390x", + ], + target_compatible_with = [ + "@bazel_tools//platforms:s390x", + ], + toolchain = ":cc-compiler-s390x", + toolchain_type = ":toolchain_type", +) + cc_toolchain( name = "cc-compiler-armeabi-v7a", all_files = ":empty", ar_files = ":empty", as_files = ":empty", compiler_files = ":empty", - cpu = "local", dwp_files = ":empty", linker_files = ":empty", objcopy_files = ":empty", @@ -202,7 +226,6 @@ cc_toolchain( ar_files = ":empty", as_files = ":empty", compiler_files = ":empty", - cpu = "local", dwp_files = ":empty", linker_files = ":empty", objcopy_files = ":empty", @@ -232,7 +255,6 @@ cc_toolchain( ar_files = ":empty", as_files = ":empty", compiler_files = ":osx_wrapper", - cpu = "darwin", dwp_files = ":empty", linker_files = ":osx_wrapper", objcopy_files = ":empty", @@ -268,7 +290,6 @@ cc_toolchain( ar_files = ":empty", as_files = ":empty", compiler_files = ":empty", - cpu = "local", dwp_files = ":empty", linker_files = ":empty", objcopy_files = ":empty", @@ -304,7 +325,6 @@ cc_toolchain( ar_files = ":empty", as_files = ":empty", compiler_files = ":empty", - cpu = "local", dwp_files = ":empty", linker_files = ":empty", objcopy_files = ":empty", @@ -340,7 +360,6 @@ cc_toolchain( ar_files = ":empty", as_files = ":empty", compiler_files = ":compile-x64_windows", - cpu = "x64_windows", dwp_files = ":empty", linker_files = ":empty", objcopy_files = ":empty",