summaryrefslogtreecommitdiff
path: root/ci/run-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/run-build.sh')
-rwxr-xr-xci/run-build.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/ci/run-build.sh b/ci/run-build.sh
index 4f940d1032..04e163359c 100755
--- a/ci/run-build.sh
+++ b/ci/run-build.sh
@@ -5,4 +5,19 @@
. ${0%/*}/lib-travisci.sh
+if [ "$jobname" = linux-gcc ]; then
+ gcc-6 --version
+ cat >config.mak <<-EOF
+ CC=gcc-6
+ CFLAGS = -g -O2 -Wall
+ CFLAGS += -Wextra
+ CFLAGS += -Wmissing-prototypes
+ CFLAGS += -Wno-empty-body
+ CFLAGS += -Wno-maybe-uninitialized
+ CFLAGS += -Wno-missing-field-initializers
+ CFLAGS += -Wno-sign-compare
+ CFLAGS += -Wno-unused-function
+ CFLAGS += -Wno-unused-parameter
+ EOF
+fi
make --jobs=2