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/third_party/libjpeg/BUILD b/third_party/libjpeg/BUILD
index a139773..469de52 100644
--- a/third_party/libjpeg/BUILD
+++ b/third_party/libjpeg/BUILD
@@ -1,69 +1,74 @@
-licenses(['notice'])
+licenses(["notice"])
cc_library(
- name = 'libjpeg',
- visibility = ['//visibility:public'],
- srcs = glob([
- 'jaricom.c',
- 'jcapimin.c',
- 'jcapistd.c',
- 'jcarith.c',
- 'jccoefct.c',
- 'jccolor.c',
- 'jcdctmgr.c',
- 'jchuff.c',
- 'jcinit.c',
- 'jcmainct.c',
- 'jcmarker.c',
- 'jcmaster.c',
- 'jcomapi.c',
- 'jcparam.c',
- 'jcprepct.c',
- 'jcsample.c',
- 'jctrans.c',
- 'jdapimin.c',
- 'jdapistd.c',
- 'jdarith.c',
- 'jdatadst.c',
- 'jdatasrc.c',
- 'jdcoefct.c',
- 'jdcolor.c',
- 'jddctmgr.c',
- 'jdhuff.c',
- 'jdinput.c',
- 'jdmainct.c',
- 'jdmarker.c',
- 'jdmaster.c',
- 'jdmerge.c',
- 'jdpostct.c',
- 'jdsample.c',
- 'jdtrans.c',
- 'jerror.c',
- 'jfdctflt.c',
- 'jfdctfst.c',
- 'jfdctint.c',
- 'jidctflt.c',
- 'jidctfst.c',
- 'jidctint.c',
- 'jquant1.c',
- 'jquant2.c',
- 'jutils.c',
- 'jmemmgr.c',
- 'jmemnobs.c',
- ]),
- hdrs = glob([
- '*.h',
- ], exclude=[
- 'jmemdos.h',
- 'jmemmac.h',
- ]),
- includes = ['src/main/c'],
- copts = [
- '-Wno-cast-align',
- '-Wno-cast-qual',
-
- '-Wno-switch-enum',
- '-Wno-format-nonliteral',
- '-Wno-unused-parameter',
- ],
+ name = "libjpeg",
+ srcs = glob([
+ "jaricom.c",
+ "jcapimin.c",
+ "jcapistd.c",
+ "jcarith.c",
+ "jccoefct.c",
+ "jccolor.c",
+ "jcdctmgr.c",
+ "jchuff.c",
+ "jcinit.c",
+ "jcmainct.c",
+ "jcmarker.c",
+ "jcmaster.c",
+ "jcomapi.c",
+ "jcparam.c",
+ "jcprepct.c",
+ "jcsample.c",
+ "jctrans.c",
+ "jdapimin.c",
+ "jdapistd.c",
+ "jdarith.c",
+ "jdatadst.c",
+ "jdatasrc.c",
+ "jdcoefct.c",
+ "jdcolor.c",
+ "jddctmgr.c",
+ "jdhuff.c",
+ "jdinput.c",
+ "jdmainct.c",
+ "jdmarker.c",
+ "jdmaster.c",
+ "jdmerge.c",
+ "jdpostct.c",
+ "jdsample.c",
+ "jdtrans.c",
+ "jerror.c",
+ "jfdctflt.c",
+ "jfdctfst.c",
+ "jfdctint.c",
+ "jidctflt.c",
+ "jidctfst.c",
+ "jidctint.c",
+ "jquant1.c",
+ "jquant2.c",
+ "jutils.c",
+ "jmemmgr.c",
+ "jmemnobs.c",
+ ]),
+ hdrs = glob(
+ [
+ "*.h",
+ ],
+ exclude = [
+ "jmemdos.h",
+ "jmemmac.h",
+ ],
+ ),
+ compatible_with = [
+ "//tools:armhf-debian",
+ ],
+ copts = [
+ "-Wno-cast-align",
+ "-Wno-cast-qual",
+ "-Wno-switch-enum",
+ "-Wno-format-nonliteral",
+ "-Wno-unused-parameter",
+ ],
+ includes = ["src/main/c"],
+ visibility = ["//visibility:public"],
)