diff options
author | Joel Stanley <joel@jms.id.au> | 2018-05-30 16:46:10 +0930 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-03-05 15:28:06 +1100 |
commit | cd2b103f2488220fc4b05ffcb2f404d821f243aa (patch) | |
tree | f41818524abf83bbbf58f0ead71160a2b01c2fc5 /Makefile.main | |
parent | 450b429feb43900da97f4d1519d886e175d43a40 (diff) | |
download | skiboot-cd2b103f2488220fc4b05ffcb2f404d821f243aa.zip skiboot-cd2b103f2488220fc4b05ffcb2f404d821f243aa.tar.gz skiboot-cd2b103f2488220fc4b05ffcb2f404d821f243aa.tar.bz2 |
Makefile: Check -Wno-stringop-truncation is supported
The cross compiler on my system throws a fit as it does not understand
this option:
cc1: error: unrecognized command line option '-Wno-stringop-truncation' [-Werror]
Fixes: 918b7233d3bb ("Add -Wno-stringop-truncation for GCC8")
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r-- | Makefile.main | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.main b/Makefile.main index 096a58d..a8e34d1 100644 --- a/Makefile.main +++ b/Makefile.main @@ -31,7 +31,7 @@ CWARNS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -Wwrite-strings -Wcast-align \ -Winit-self \ -Wframe-larger-than=1024 \ - -Wno-stringop-truncation \ + $(call try-cflag,$(CC),--Wno-stringop-truncation) \ -Werror # Host tools and options |