aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell/bazel/testdata
diff options
context:
space:
mode:
authorGravatar Xin Gao <xingao@google.com>2016-09-22 14:01:48 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-09-22 17:52:40 +0000
commit70f88f518b0b74027fc6a88cf13105d848c3f86b (patch)
treeee04a55f2cb09729bcfe478054a3091829727428 /src/test/shell/bazel/testdata
parent4946ab9d5b5d78862c043e35342107a1b9b2f398 (diff)
Push missing testdata directory to Github.
-- MOS_MIGRATED_REVID=133949075
Diffstat (limited to 'src/test/shell/bazel/testdata')
-rw-r--r--src/test/shell/bazel/testdata/BUILD4
-rw-r--r--src/test/shell/bazel/testdata/bazel_toolchain_test_data/BUILD12
-rw-r--r--src/test/shell/bazel/testdata/bazel_toolchain_test_data/WORKSPACE.linaro6
-rw-r--r--src/test/shell/bazel/testdata/bazel_toolchain_test_data/compilers/linaro_linux_gcc_4.9.BUILD81
-rw-r--r--src/test/shell/bazel/testdata/bazel_toolchain_test_data/hello.cc23
-rw-r--r--src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/BUILD97
-rw-r--r--src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/CROSSTOOL240
-rw-r--r--src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/BUILD85
-rw-r--r--src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-ar5
-rw-r--r--src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-as5
-rw-r--r--src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-gcc6
-rw-r--r--src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-ld5
-rw-r--r--src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-nm5
-rw-r--r--src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-objcopy5
-rw-r--r--src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-objdump5
-rw-r--r--src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-strip5
16 files changed, 588 insertions, 1 deletions
diff --git a/src/test/shell/bazel/testdata/BUILD b/src/test/shell/bazel/testdata/BUILD
index 332794ca57..da7f79038c 100644
--- a/src/test/shell/bazel/testdata/BUILD
+++ b/src/test/shell/bazel/testdata/BUILD
@@ -1,6 +1,8 @@
filegroup(
name = "srcs",
- srcs = glob(["**"]),
+ srcs = glob(["**"]) + [
+ "//src/test/shell/bazel/testdata/bazel_toolchain_test_data:srcs",
+ ],
visibility = ["//src/test/shell/bazel:__pkg__"],
)
diff --git a/src/test/shell/bazel/testdata/bazel_toolchain_test_data/BUILD b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/BUILD
new file mode 100644
index 0000000000..285819ff0a
--- /dev/null
+++ b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/BUILD
@@ -0,0 +1,12 @@
+filegroup(
+ name = "srcs",
+ srcs = glob(["**"]) + [
+ "//src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler:srcs",
+ ],
+ visibility = ["//src/test/shell/bazel/testdata:__pkg__"],
+)
+
+cc_binary(
+ name = "hello",
+ srcs = ["hello.cc"],
+)
diff --git a/src/test/shell/bazel/testdata/bazel_toolchain_test_data/WORKSPACE.linaro b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/WORKSPACE.linaro
new file mode 100644
index 0000000000..3360657f3a
--- /dev/null
+++ b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/WORKSPACE.linaro
@@ -0,0 +1,6 @@
+new_http_archive(
+ name = 'linaroLinuxGcc49Repo',
+ build_file = 'compilers/linaro_linux_gcc_4.9.BUILD',
+ url = 'https://releases.linaro.org/15.05/components/toolchain/binaries/arm-linux-gnueabihf/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.xz',
+ strip_prefix = 'gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf',
+) \ No newline at end of file
diff --git a/src/test/shell/bazel/testdata/bazel_toolchain_test_data/compilers/linaro_linux_gcc_4.9.BUILD b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/compilers/linaro_linux_gcc_4.9.BUILD
new file mode 100644
index 0000000000..b231d0180e
--- /dev/null
+++ b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/compilers/linaro_linux_gcc_4.9.BUILD
@@ -0,0 +1,81 @@
+package(default_visibility = ['//visibility:public'])
+
+filegroup(
+ name = 'gcc',
+ srcs = [
+ 'bin/arm-linux-gnueabihf-gcc',
+ ],
+)
+
+filegroup(
+ name = 'ar',
+ srcs = [
+ 'bin/arm-linux-gnueabihf-ar',
+ ],
+)
+
+filegroup(
+ name = 'ld',
+ srcs = [
+ 'bin/arm-linux-gnueabihf-ld',
+ ],
+)
+
+filegroup(
+ name = 'nm',
+ srcs = [
+ 'bin/arm-linux-gnueabihf-nm',
+ ],
+)
+
+filegroup(
+ name = 'objcopy',
+ srcs = [
+ 'bin/arm-linux-gnueabihf-objcopy',
+ ],
+)
+
+filegroup(
+ name = 'objdump',
+ srcs = [
+ 'bin/arm-linux-gnueabihf-objdump',
+ ],
+)
+
+filegroup(
+ name = 'strip',
+ srcs = [
+ 'bin/arm-linux-gnueabihf-strip',
+ ],
+)
+
+filegroup(
+ name = 'as',
+ srcs = [
+ 'bin/arm-linux-gnueabihf-as',
+ ],
+)
+
+filegroup(
+ name = 'compiler_pieces',
+ srcs = glob([
+ 'arm-linux-gnueabihf/**',
+ 'libexec/**',
+ 'lib/gcc/arm-linux-gnueabihf/**',
+ 'include/**',
+ ]),
+)
+
+filegroup(
+ name = 'compiler_components',
+ srcs = [
+ ':gcc',
+ ':ar',
+ ':ld',
+ ':nm',
+ ':objcopy',
+ ':objdump',
+ ':strip',
+ ':as',
+ ],
+)
diff --git a/src/test/shell/bazel/testdata/bazel_toolchain_test_data/hello.cc b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/hello.cc
new file mode 100644
index 0000000000..b41be6d197
--- /dev/null
+++ b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/hello.cc
@@ -0,0 +1,23 @@
+// Copyright 2016 The Bazel Authors. All rights reserved.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#include <cmath>
+#include <cstdlib>
+#include <ctime>
+#include <iostream>
+
+int main(int argc, char* argv[]) {
+ std::cout << "Hello! sqrt(time) = " << std::sqrt(time(NULL)) << std::endl;
+ return EXIT_SUCCESS;
+}
diff --git a/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/BUILD b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/BUILD
new file mode 100644
index 0000000000..e065b2203d
--- /dev/null
+++ b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/BUILD
@@ -0,0 +1,97 @@
+# This is the entry point for --crosstool_top. Toolchains are found
+# by lopping off the name of --crosstool_top and searching for
+# 'cc-compiler-${CPU}' in this BUILD file, where CPU is the target CPU
+# specified in --cpu.
+#
+# This file group should include
+# * all cc_toolchain targets supported
+# * all file groups that said cc_toolchain might refer to,
+# including the default_grte_top setting in the CROSSTOOL
+# protobuf.
+filegroup(
+ name = "toolchain_fg",
+ srcs = [
+ ":cc-compiler-armeabi-v7a",
+ ":cc-compiler-k8",
+ ":linaro_linux_all_files",
+ "@linaroLinuxGcc49Repo//:compiler_components",
+ ],
+)
+
+filegroup(
+ name = "srcs",
+ srcs = glob(["**"]) + [
+ "//src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc:srcs",
+ ],
+ visibility = ["//src/test/shell/bazel/testdata/bazel_toolchain_test_data:__pkg__"],
+)
+
+cc_toolchain_suite(
+ name = "toolchain",
+ # target_cpu | compiler
+ toolchains = {
+ "armeabi-v7a|gcc": "cc-compiler-armeabi-v7a",
+ "k8|compiler": "cc-compiler-k8",
+ },
+)
+
+filegroup(
+ name = "linaro_linux_all_files",
+ srcs = [
+ "//tools/arm_compiler/linaro_linux_gcc:tool-wrappers",
+ "@linaroLinuxGcc49Repo//:compiler_pieces",
+ ],
+)
+
+filegroup(
+ name = "linaro_linux_linker_files",
+ srcs = [
+ "//tools/arm_compiler/linaro_linux_gcc:ar",
+ "//tools/arm_compiler/linaro_linux_gcc:gcc",
+ "//tools/arm_compiler/linaro_linux_gcc:ld",
+ "@linaroLinuxGcc49Repo//:compiler_pieces",
+ ],
+)
+
+filegroup(
+ name = "linaro_linux_compiler_files",
+ srcs = [
+ "//tools/arm_compiler/linaro_linux_gcc:as",
+ "//tools/arm_compiler/linaro_linux_gcc:gcc",
+ "//tools/arm_compiler/linaro_linux_gcc:ld",
+ ],
+)
+
+filegroup(
+ name = "empty",
+ srcs = [],
+)
+
+cc_toolchain(
+ name = "cc-compiler-armeabi-v7a",
+ all_files = ":linaro_linux_all_files",
+ compiler_files = ":linaro_linux_compiler_files",
+ cpu = "armeabi-v7a",
+ dwp_files = ":empty",
+ dynamic_runtime_libs = [":empty"],
+ linker_files = ":linaro_linux_linker_files",
+ objcopy_files = "//tools/arm_compiler/linaro_linux_gcc:objcopy",
+ static_runtime_libs = [":empty"],
+ strip_files = "//tools/arm_compiler/linaro_linux_gcc:strip",
+ supports_param_files = 1,
+ visibility = ["//visibility:public"],
+)
+
+cc_toolchain(
+ name = "cc-compiler-k8",
+ all_files = ":empty",
+ compiler_files = ":empty",
+ cpu = "local",
+ dwp_files = ":empty",
+ dynamic_runtime_libs = [":empty"],
+ linker_files = ":empty",
+ objcopy_files = ":empty",
+ static_runtime_libs = [":empty"],
+ strip_files = ":empty",
+ supports_param_files = 1,
+)
diff --git a/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/CROSSTOOL b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/CROSSTOOL
new file mode 100644
index 0000000000..829148b904
--- /dev/null
+++ b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/CROSSTOOL
@@ -0,0 +1,240 @@
+major_version: "local"
+minor_version: ""
+default_target_cpu: "armeabi-v7a"
+
+default_toolchain {
+ cpu: "armeabi-v7a"
+ toolchain_identifier: "clang_linux_armhf"
+}
+
+default_toolchain {
+ cpu: "k8"
+ toolchain_identifier: "local"
+}
+
+toolchain {
+ abi_version: "gcc"
+ abi_libc_version: "glibc_2.19"
+ builtin_sysroot: ""
+ compiler: "gcc"
+ host_system_name: "armeabi-v7a"
+ needsPic: true
+ supports_gold_linker: false
+ supports_incremental_linker: false
+ supports_fission: false
+ supports_interface_shared_objects: false
+ supports_normalizing_ar: true
+ supports_start_end_lib: false
+ supports_thin_archives: true
+ target_libc: "glibc_2.19"
+ target_cpu: "armeabi-v7a"
+ target_system_name: "arm_a15"
+ toolchain_identifier: "clang_linux_armhf"
+
+ tool_path { name: "ar" path: "linaro_linux_gcc/arm-linux-gnueabihf-ar" }
+ tool_path { name: "compat-ld" path: "linaro_linux_gcc/arm-linux-gnueabihf-ld" }
+ tool_path { name: "cpp" path: "linaro_linux_gcc/arm-linux-gnueabihf-gcc" }
+ tool_path { name: "dwp" path: "linaro_linux_gcc/arm-linux-gnueabihf-dwp" }
+ tool_path { name: "gcc" path: "linaro_linux_gcc/arm-linux-gnueabihf-gcc" }
+ tool_path { name: "gcov" path: "arm-frc-linux-gnueabi/arm-frc-linux-gnueabi-gcov-4.9" }
+ # C(++) compiles invoke the compiler (as that is the one knowing where
+ # to find libraries), but we provide LD so other rules can invoke the linker.
+ tool_path { name: "ld" path: "linaro_linux_gcc/arm-linux-gnueabihf-ld" }
+ tool_path { name: "nm" path: "linaro_linux_gcc/arm-linux-gnueabihf-nm" }
+ tool_path { name: "objcopy" path: "linaro_linux_gcc/arm-linux-gnueabihf-objcopy" }
+ objcopy_embed_flag: "-I"
+ objcopy_embed_flag: "binary"
+ tool_path { name: "objdump" path: "linaro_linux_gcc/arm-linux-gnueabihf-objdump" }
+ tool_path { name: "strip" path: "linaro_linux_gcc/arm-linux-gnueabihf-strip" }
+
+ compiler_flag: "--sysroot=external/linaroLinuxGcc49Repo/arm-linux-gnueabihf/libc"
+ compiler_flag: "-mfloat-abi=hard"
+
+ compiler_flag: "-nostdinc"
+ compiler_flag: "-isystem"
+ compiler_flag: "external/linaroLinuxGcc49Repo/lib/gcc/arm-linux-gnueabihf/4.9.3/include"
+ compiler_flag: "-isystem"
+ compiler_flag: "external/linaroLinuxGcc49Repo/arm-linux-gnueabihf/libc/usr/include"
+ compiler_flag: "-isystem"
+ compiler_flag: "external/linaroLinuxGcc49Repo/lib/gcc/arm-linux-gnueabihf/4.9.3/include-fixed"
+ compiler_flag: "-isystem"
+ compiler_flag: "external/linaroLinuxGcc49Repo/arm-linux-gnueabihf/libc/usr/include"
+ cxx_flag: "-isystem"
+ cxx_flag: "external/linaroLinuxGcc49Repo/arm-linux-gnueabihf/include/c++/4.9.3/arm-linux-gnueabihf"
+ cxx_flag: "-isystem"
+ cxx_flag: "external/linaroLinuxGcc49Repo/arm-linux-gnueabihf/include/c++/4.9.3"
+ cxx_flag: "-isystem"
+ cxx_flag: "external/linaroLinuxGcc49Repo/include/c++/4.9.3/arm-linux-gnueabihf"
+ cxx_flag: "-isystem"
+ cxx_flag: "external/linaroLinuxGcc49Repo/include/c++/4.9.3"
+
+ cxx_builtin_include_directory: "%package(@linaroLinuxGcc49Repo//include)%"
+ cxx_builtin_include_directory: "%package(@linaroLinuxGcc49Repo//arm-linux-gnueabihf/libc/usr/include)%"
+ cxx_builtin_include_directory: "%package(@linaroLinuxGcc49Repo//arm-linux-gnueabihf/libc/usr/lib/include)%"
+ cxx_builtin_include_directory: "%package(@linaroLinuxGcc49Repo//arm-linux-gnueabihf/libc/lib/gcc/arm-linux-gnueabihf/4.9.3/include-fixed)%"
+ cxx_builtin_include_directory: "%package(@linaroLinuxGcc49Repo//include)%/c++/4.9.3"
+ cxx_builtin_include_directory: "%package(@linaroLinuxGcc49Repo//arm-linux-gnueabihf/libc/lib/gcc/arm-linux-gnueabihf/4.9.3/include)%"
+ cxx_builtin_include_directory: "%package(@linaroLinuxGcc49Repo//arm-linux-gnueabihf/libc/lib/gcc/arm-linux-gnueabihf/4.9.3/include-fixed)%"
+ cxx_builtin_include_directory: "%package(@linaroLinuxGcc49Repo//lib/gcc/arm-linux-gnueabihf/4.9.3/include)%"
+ cxx_builtin_include_directory: "%package(@linaroLinuxGcc49Repo//lib/gcc/arm-linux-gnueabihf/4.9.3/include-fixed)%"
+ cxx_builtin_include_directory: "%package(@linaroLinuxGcc49Repo//arm-linux-gnueabihf/include)%/c++/4.9.3"
+
+ linker_flag: "--sysroot=external/linaroLinuxGcc49Repo/arm-linux-gnueabihf/libc"
+ linker_flag: "-lstdc++"
+ linker_flag: "-latomic"
+ linker_flag: "-lm"
+ linker_flag: "-lpthread"
+ linker_flag: "-Ltools/arm_compiler/linaro_linux_gcc/clang_more_libs"
+ linker_flag: "-Lexternal/linaroLinuxGcc49Repo/arm-linux-gnueabihf/lib"
+ linker_flag: "-Lexternal/linaroLinuxGcc49Repo/arm-linux-gnueabihf/libc/lib"
+ linker_flag: "-Lexternal/linaroLinuxGcc49Repo/arm-linux-gnueabihf/libc/usr/lib"
+ linker_flag: "-Bexternal/linaroLinuxGcc49Repo/arm-linux-gnueabihf/bin"
+ linker_flag: "-Wl,--dynamic-linker=/lib/ld-linux-armhf.so.3"
+
+ # Anticipated future default.
+ # This makes GCC and Clang do what we want when called through symlinks.
+ unfiltered_cxx_flag: "-no-canonical-prefixes"
+ linker_flag: "-no-canonical-prefixes"
+
+ # Make C++ compilation deterministic. Use linkstamping instead of these
+ # compiler symbols.
+ unfiltered_cxx_flag: "-Wno-builtin-macro-redefined"
+ unfiltered_cxx_flag: "-D__DATE__=\"redacted\""
+ unfiltered_cxx_flag: "-D__TIMESTAMP__=\"redacted\""
+ unfiltered_cxx_flag: "-D__TIME__=\"redacted\""
+
+ # Security hardening on by default.
+ # Conservative choice; -D_FORTIFY_SOURCE=2 may be unsafe in some cases.
+ # We need to undef it before redefining it as some distributions now have
+ # it enabled by default.
+ compiler_flag: "-U_FORTIFY_SOURCE"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-fPIE"
+ linker_flag: "-pie"
+ linker_flag: "-Wl,-z,relro,-z,now"
+
+ # Enable coloring even if there's no attached terminal. Bazel removes the
+ # escape sequences if --nocolor is specified.
+ compiler_flag: "-fdiagnostics-color=always"
+
+ # All warnings are enabled. Maybe enable -Werror as well?
+ compiler_flag: "-Wall"
+ # Enable a few more warnings that aren't part of -Wall.
+ compiler_flag: "-Wunused-but-set-parameter"
+ # But disable some that are problematic.
+ compiler_flag: "-Wno-free-nonheap-object" # has false positives
+
+ # Keep stack frames for debugging, even in opt mode.
+ compiler_flag: "-fno-omit-frame-pointer"
+
+ # Stamp the binary with a unique identifier.
+ linker_flag: "-Wl,--build-id=md5"
+ linker_flag: "-Wl,--hash-style=gnu"
+
+ compilation_mode_flags {
+ mode: DBG
+ # Enable debug symbols.
+ compiler_flag: "-g"
+ }
+ compilation_mode_flags {
+ mode: OPT
+ # No debug symbols.
+ # Maybe we should enable https://gcc.gnu.org/wiki/DebugFission for opt or
+ # even generally? However, that can't happen here, as it requires special
+ # handling in Bazel.
+ compiler_flag: "-g0"
+
+ # Conservative choice for -O
+ # -O3 can increase binary size and even slow down the resulting binaries.
+ # Profile first and / or use FDO if you need better performance than this.
+ compiler_flag: "-O2"
+
+ # Disable assertions
+ compiler_flag: "-DNDEBUG"
+
+ # Removal of unused code and data at link time (can this increase binary size in some cases?).
+ compiler_flag: "-ffunction-sections"
+ compiler_flag: "-fdata-sections"
+ linker_flag: "-Wl,--gc-sections"
+ }
+}
+
+toolchain {
+ toolchain_identifier: "local"
+ abi_libc_version: "local"
+ abi_version: "local"
+ builtin_sysroot: ""
+ compiler: "compiler"
+ compiler_flag: "-U_FORTIFY_SOURCE"
+ compiler_flag: "-D_FORTIFY_SOURCE=2"
+ compiler_flag: "-fstack-protector"
+ compiler_flag: "-Wall"
+ compiler_flag: "-Wl,-z,-relro,-z,now"
+ compiler_flag: "-B/usr/bin"
+ compiler_flag: "-B/usr/bin"
+ compiler_flag: "-Wunused-but-set-parameter"
+ compiler_flag: "-Wno-free-nonheap-object"
+ compiler_flag: "-fno-omit-frame-pointer"
+ cxx_builtin_include_directory: "/usr/include/c++/4.8"
+ cxx_builtin_include_directory: "/usr/include/x86_64-linux-gnu/c++/4.8"
+ cxx_builtin_include_directory: "/usr/include/c++/4.8/backward"
+ cxx_builtin_include_directory: "/usr/lib/gcc/x86_64-linux-gnu/4.8/include"
+ cxx_builtin_include_directory: "/usr/local/include"
+ cxx_builtin_include_directory: "/usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed"
+ cxx_builtin_include_directory: "/usr/include/x86_64-linux-gnu"
+ cxx_builtin_include_directory: "/usr/include"
+ cxx_flag: "-std=c++0x"
+ host_system_name: "local"
+ linker_flag: "-lstdc++"
+ linker_flag: "-lm"
+ linker_flag: "-Wl,-no-as-needed"
+ linker_flag: "-B/usr/bin"
+ linker_flag: "-B/usr/bin"
+ linker_flag: "-pass-exit-codes"
+ linker_flag: "-Wl,--build-id=md5"
+ linker_flag: "-Wl,--hash-style=gnu"
+ needsPic: true
+ objcopy_embed_flag: "-I"
+ objcopy_embed_flag: "binary"
+ supports_fission: false
+ supports_gold_linker: false
+ supports_incremental_linker: false
+ supports_interface_shared_objects: false
+ supports_normalizing_ar: false
+ supports_start_end_lib: false
+ supports_thin_archives: false
+ target_cpu: "k8"
+ target_libc: "local"
+ target_system_name: "local"
+ unfiltered_cxx_flag: "-fno-canonical-system-headers"
+ unfiltered_cxx_flag: "-Wno-builtin-macro-redefined"
+ unfiltered_cxx_flag: "-D__DATE__=\"redacted\""
+ unfiltered_cxx_flag: "-D__TIMESTAMP__=\"redacted\""
+ unfiltered_cxx_flag: "-D__TIME__=\"redacted\""
+ tool_path {name: "ar" path: "/usr/bin/ar" }
+ tool_path {name: "cpp" path: "/usr/bin/cpp" }
+ tool_path {name: "dwp" path: "/usr/bin/dwp" }
+ tool_path {name: "gcc" path: "/usr/bin/gcc" }
+ tool_path {name: "gcov" path: "/usr/bin/gcov" }
+ tool_path {name: "ld" path: "/usr/bin/ld" }
+ tool_path {name: "nm" path: "/usr/bin/nm" }
+ tool_path {name: "objcopy" path: "/usr/bin/objcopy" }
+ tool_path {name: "objdump" path: "/usr/bin/objdump" }
+ tool_path {name: "strip" path: "/usr/bin/strip" }
+
+ compilation_mode_flags {
+ mode: DBG
+ compiler_flag: "-g"
+ }
+ compilation_mode_flags {
+ mode: OPT
+ compiler_flag: "-g0"
+ compiler_flag: "-O2"
+ compiler_flag: "-DNDEBUG"
+ compiler_flag: "-ffunction-sections"
+ compiler_flag: "-fdata-sections"
+ linker_flag: "-Wl,--gc-sections"
+ }
+ linking_mode_flags { mode: DYNAMIC }
+}
+
diff --git a/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/BUILD b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/BUILD
new file mode 100644
index 0000000000..832c6ac0a3
--- /dev/null
+++ b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/BUILD
@@ -0,0 +1,85 @@
+package(default_visibility = ["//tools/arm_compiler:__pkg__"])
+
+filegroup(
+ name = "srcs",
+ srcs = glob(["**"]),
+ visibility = ["//src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler:__pkg__"],
+)
+
+filegroup(
+ name = "gcc",
+ srcs = [
+ "arm-linux-gnueabihf-gcc",
+ "@linaroLinuxGcc49Repo//:gcc",
+ ],
+)
+
+filegroup(
+ name = "ar",
+ srcs = [
+ "arm-linux-gnueabihf-ar",
+ "@linaroLinuxGcc49Repo//:ar",
+ ],
+)
+
+filegroup(
+ name = "ld",
+ srcs = [
+ "arm-linux-gnueabihf-ld",
+ "@linaroLinuxGcc49Repo//:ld",
+ ],
+)
+
+filegroup(
+ name = "nm",
+ srcs = [
+ "arm-linux-gnueabihf-nm",
+ "@linaroLinuxGcc49Repo//:nm",
+ ],
+)
+
+filegroup(
+ name = "objcopy",
+ srcs = [
+ "arm-linux-gnueabihf-objcopy",
+ "@linaroLinuxGcc49Repo//:objcopy",
+ ],
+)
+
+filegroup(
+ name = "objdump",
+ srcs = [
+ "arm-linux-gnueabihf-objdump",
+ "@linaroLinuxGcc49Repo//:objdump",
+ ],
+)
+
+filegroup(
+ name = "strip",
+ srcs = [
+ "arm-linux-gnueabihf-strip",
+ "@linaroLinuxGcc49Repo//:strip",
+ ],
+)
+
+filegroup(
+ name = "as",
+ srcs = [
+ "arm-linux-gnueabihf-as",
+ "@linaroLinuxGcc49Repo//:as",
+ ],
+)
+
+filegroup(
+ name = "tool-wrappers",
+ srcs = [
+ ":ar",
+ ":as",
+ ":gcc",
+ ":ld",
+ ":nm",
+ ":objcopy",
+ ":objdump",
+ ":strip",
+ ],
+)
diff --git a/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-ar b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-ar
new file mode 100644
index 0000000000..59c293a2ad
--- /dev/null
+++ b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-ar
@@ -0,0 +1,5 @@
+#!/bin/bash --norc
+
+exec -a arm-linux-gnueabihf-ar \
+ external/linaroLinuxGcc49Repo/bin/arm-linux-gnueabihf-ar \
+ "$@"
diff --git a/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-as b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-as
new file mode 100644
index 0000000000..6b84a72d23
--- /dev/null
+++ b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-as
@@ -0,0 +1,5 @@
+#!/bin/bash --norc
+
+exec -a arm-linux-gnueabihf-as \
+ external/linaroLinuxGcc49Repo/bin/arm-linux-gnueabihf-as \
+ "$@"
diff --git a/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-gcc b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-gcc
new file mode 100644
index 0000000000..c4d1fef021
--- /dev/null
+++ b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-gcc
@@ -0,0 +1,6 @@
+#!/bin/bash --norc
+
+PATH="external/linaroLinuxGcc49Repo/libexec/gcc/arm-linux-gnueabihf/4.9.3:$PATH" \
+ exec \
+ external/linaroLinuxGcc49Repo/bin/arm-linux-gnueabihf-gcc \
+ "$@"
diff --git a/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-ld b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-ld
new file mode 100644
index 0000000000..1ffe8e20b7
--- /dev/null
+++ b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-ld
@@ -0,0 +1,5 @@
+#!/bin/bash --norc
+
+exec -a arm-linux-gnueabihf-ld \
+ external/linaroLinuxGcc49Repo/bin/arm-linux-gnueabihf-ld \
+ "$@"
diff --git a/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-nm b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-nm
new file mode 100644
index 0000000000..29fd89bf9b
--- /dev/null
+++ b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-nm
@@ -0,0 +1,5 @@
+#!/bin/bash --norc
+
+exec -a arm-linux-gnueabihf-nm \
+ external/linaroLinuxGcc49Repo/bin/arm-linux-gnueabihf-nm \
+ "$@"
diff --git a/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-objcopy b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-objcopy
new file mode 100644
index 0000000000..c34969ebb7
--- /dev/null
+++ b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-objcopy
@@ -0,0 +1,5 @@
+#!/bin/bash --norc
+
+exec -a arm-linux-gnueabihf-objcopy \
+ external/linaroLinuxGcc49Repo/bin/arm-linux-gnueabihf-objcopy \
+ "$@"
diff --git a/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-objdump b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-objdump
new file mode 100644
index 0000000000..3c0275e116
--- /dev/null
+++ b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-objdump
@@ -0,0 +1,5 @@
+#!/bin/bash --norc
+
+exec -a arm-linux-gnueabihf-objdump \
+ external/linaroLinuxGcc49Repo/bin/arm-linux-gnueabihf-objdump \
+ "$@"
diff --git a/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-strip b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-strip
new file mode 100644
index 0000000000..8023109b84
--- /dev/null
+++ b/src/test/shell/bazel/testdata/bazel_toolchain_test_data/tools/arm_compiler/linaro_linux_gcc/arm-linux-gnueabihf-strip
@@ -0,0 +1,5 @@
+#!/bin/bash --norc
+
+exec -a arm-linux-gnueabihf-strip \
+ external/linaroLinuxGcc49Repo/bin/arm-linux-gnueabihf-strip \
+ "$@"