[glibmm] tools/test_scripts/testheaders.sh: Don't request c++11
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] tools/test_scripts/testheaders.sh: Don't request c++11
- Date: Wed, 22 Mar 2017 10:09:54 +0000 (UTC)
commit 96a7b306819305dc4ffba5835ed55a446973f08e
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Wed Mar 22 11:07:38 2017 +0100
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.
tools/test_scripts/testheaders.sh | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/tools/test_scripts/testheaders.sh b/tools/test_scripts/testheaders.sh
index 1c9e274..80c5a67 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]