Use the downloaded clang when building for armhf-debian
This makes it work on a barebones Stretch installation.
Also add building for this CPU to the CI script so we know it keeps
working, which means marking everything that's supposed to work
appropriately.
Change-Id: Ic050ce20eae45c6b23e0e42dddb24db3ebc70b84
diff --git a/compilers/linaro_linux_gcc_4.9.BUILD b/compilers/linaro_linux_gcc_4.9.BUILD
index 52748d5..db2e9bb 100644
--- a/compilers/linaro_linux_gcc_4.9.BUILD
+++ b/compilers/linaro_linux_gcc_4.9.BUILD
@@ -1,114 +1,81 @@
-package(default_visibility = ['//visibility:public'])
+package(default_visibility = ["//visibility:public"])
filegroup(
- name = 'gcc',
- srcs = [
- 'bin/arm-linux-gnueabihf-gcc',
- ],
+ name = "gcc",
+ srcs = [
+ "bin/arm-linux-gnueabihf-gcc",
+ ],
)
filegroup(
- name = 'ar',
- srcs = [
- 'bin/arm-linux-gnueabihf-ar',
- ],
+ name = "ar",
+ srcs = [
+ "bin/arm-linux-gnueabihf-ar",
+ ],
)
filegroup(
- name = 'ld',
- srcs = [
- 'bin/arm-linux-gnueabihf-ld',
- ],
+ name = "ld",
+ srcs = [
+ "bin/arm-linux-gnueabihf-ld",
+ ],
)
filegroup(
- name = 'nm',
- srcs = [
- 'bin/arm-linux-gnueabihf-nm',
- ],
+ name = "nm",
+ srcs = [
+ "bin/arm-linux-gnueabihf-nm",
+ ],
)
filegroup(
- name = 'objcopy',
- srcs = [
- 'bin/arm-linux-gnueabihf-objcopy',
- ],
+ name = "objcopy",
+ srcs = [
+ "bin/arm-linux-gnueabihf-objcopy",
+ ],
)
filegroup(
- name = 'objdump',
- srcs = [
- 'bin/arm-linux-gnueabihf-objdump',
- ],
+ name = "objdump",
+ srcs = [
+ "bin/arm-linux-gnueabihf-objdump",
+ ],
)
filegroup(
- name = 'strip',
- srcs = [
- 'bin/arm-linux-gnueabihf-strip',
- ],
+ name = "strip",
+ srcs = [
+ "bin/arm-linux-gnueabihf-strip",
+ ],
)
filegroup(
- name = 'as',
- srcs = [
- 'bin/arm-linux-gnueabihf-as',
- ],
-)
-
-cc_library(
- name = 'librt',
- srcs = [
- 'arm-linux-gnueabihf/libc/usr/lib/librt.so',
- ],
-)
-
-cc_library(
- name = 'libdl',
- srcs = [
- 'arm-linux-gnueabihf/libc/usr/lib/libdl.so',
- ],
-)
-
-cc_library(
- name = 'libm',
- srcs = [
- 'arm-linux-gnueabihf/libc/usr/lib/libm.so',
- ],
-)
-
-cc_library(
- name = 'libpthread',
- deps = [
- '@//tools/cpp/linaro_linux_gcc:libpthread',
- ],
+ name = "as",
+ srcs = [
+ "bin/arm-linux-gnueabihf-as",
+ ],
)
filegroup(
- name = 'compiler_pieces',
- srcs = glob([
- 'arm-linux-gnueabihf/**',
- 'libexec/**',
- 'lib/gcc/arm-linux-gnueabihf/**',
- 'include/**',
- ],
- exclude=[
- # Exclude empty files so Bazel's caching works.
- # TODO(Brian): remove this once the Bazel bug is fixed.
- '**/.install',
- ]),
+ 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',
- ],
+ name = "compiler_components",
+ srcs = [
+ ":ar",
+ ":as",
+ ":gcc",
+ ":ld",
+ ":nm",
+ ":objcopy",
+ ":objdump",
+ ":strip",
+ ],
)