summaryrefslogtreecommitdiff
path: root/tools/test_scripts/testheaders.sh
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjell.ahlstedt@bredband.net>2017-03-22 11:07:38 +0100
committerKjell Ahlstedt <kjell.ahlstedt@bredband.net>2017-03-22 11:07:38 +0100
commit96a7b306819305dc4ffba5835ed55a446973f08e (patch)
treeaedf3a122a334c73789a50db032b8f8f30c9d780 /tools/test_scripts/testheaders.sh
parent4338cb5b326459d8d04531aaf25e4b52c63cfe1e (diff)
downloadglibmm-96a7b306819305dc4ffba5835ed55a446973f08e.tar.gz
tools/test_scripts/testheaders.sh: Don't request c++11
Glibmm requires c++14 now, and that's the default c++ version in the latest gcc versions.
Diffstat (limited to 'tools/test_scripts/testheaders.sh')
-rwxr-xr-xtools/test_scripts/testheaders.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/test_scripts/testheaders.sh b/tools/test_scripts/testheaders.sh
index 1c9e2740..80c5a672 100755
--- a/tools/test_scripts/testheaders.sh
+++ b/tools/test_scripts/testheaders.sh
@@ -18,6 +18,9 @@ function usage() {
exit 1
}
+#extra_gcc_args=-std=c++11
+extra_gcc_args=
+
# Search for directories to include in CFLAGS.
idirs=""
while [ $# -gt 0 ]
@@ -75,11 +78,11 @@ do
for headerfile in $i/${i}mm/*.h
do
echo "=== $headerfile"
- g++ -c -x c++ -std=c++11 -o /dev/null $headerfile $CFLAGS
+ g++ -c -x c++ $extra_gcc_args -o /dev/null $headerfile $CFLAGS
done
else
echo "=== $i"
- g++ -c -x c++ -std=c++11 -o /dev/null $i $CFLAGS
+ g++ -c -x c++ $extra_gcc_args -o /dev/null $i $CFLAGS
fi
done