From 2242d5aee4961a48a2cc79c0a5a40e302514994a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Thu, 3 Nov 2016 15:47:41 +0100 Subject: [PATCH] Use -O0 in contrib scripts * contrib/check-hard: Use -O0 instead of -O2 to speed up script. * contrib/travis-ci: Likewise. --- contrib/check-hard | 2 +- contrib/travis-ci | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/check-hard b/contrib/check-hard index f7c54a7b..00e40f2e 100755 --- a/contrib/check-hard +++ b/contrib/check-hard @@ -12,7 +12,7 @@ if [ $CORES -lt 1 ]; then CORES=1; fi echo "Running: make distclean" make distclean > /dev/null || true -CFLAGS="-std=c89 -pedantic -O2 -g -Wall -Wextra -Wstrict-prototypes -Wold-style-definition -Wwrite-strings -Wshadow -Wformat -Wformat-security -Wunreachable-code -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition" +CFLAGS="-std=c89 -pedantic -O0 -g -Wall -Wextra -Wstrict-prototypes -Wold-style-definition -Wwrite-strings -Wshadow -Wformat -Wformat-security -Wunreachable-code -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition" CACHEFILE=$PWD/config_check.cache diff --git a/contrib/travis-ci b/contrib/travis-ci index 4a07585b..49684435 100755 --- a/contrib/travis-ci +++ b/contrib/travis-ci @@ -21,7 +21,7 @@ CORES=3 # Define a large number of Warning flags for the compiler. Hopefully, someone # will sit and analyze the output to clean the warnings from the codebase. -CFLAGS="-std=c89 -pedantic -O2 -Wall -Wextra -Wstrict-prototypes -Wold-style-definition -Wwrite-strings -Wshadow -Wformat -Wformat-security -Wunreachable-code -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition" +CFLAGS="-std=c89 -pedantic -O0 -Wall -Wextra -Wstrict-prototypes -Wold-style-definition -Wwrite-strings -Wshadow -Wformat -Wformat-security -Wunreachable-code -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition" # A cachefile for ./configure. Saves significant time when reconfiguring CACHEFILE=$PWD/config_check.cache