aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2020-06-12 12:24:51 +1000
committerOliver O'Halloran <oohall@gmail.com>2020-06-17 21:18:45 +1000
commit0dbbe6105acfaf2e2e4a87f31a9d390a204a7be9 (patch)
tree35b223dc10972c7abe6a2aebb635a5fbb8ae8641 /Makefile.main
parentb495861060630e0d4ec2c0ede788281b9dd52047 (diff)
downloadskiboot-0dbbe6105acfaf2e2e4a87f31a9d390a204a7be9.zip
skiboot-0dbbe6105acfaf2e2e4a87f31a9d390a204a7be9.tar.gz
skiboot-0dbbe6105acfaf2e2e4a87f31a9d390a204a7be9.tar.bz2
makefile: Supress Werror on clang
We get a lot more warnings from clang so disable Werror for now so it fails to compile elsewhere. Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.main b/Makefile.main
index ec69b2d..c429bf1 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -43,6 +43,11 @@ CWARNS += -Werror
endif
endif
+# clang tends to emit more warnings so stop those breaking the build for now
+ifeq ($(cc-name),clang)
+CWARNS += -Wno-error
+endif
+
# Host tools and options
HOSTCC=gcc
HOSTEND=$(shell uname -m | sed -e 's/^i.*86$$/LITTLE/' -e 's/^x86.*/LITTLE/' -e 's/^ppc64le/LITTLE/' -e 's/^ppc.*/BIG/')