aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-12-14 10:03:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-12-14 10:03:11 +0200
commit24ec38c7e028723f84ab15ca0ecef6e56a899aea (patch)
treefb95648900fcc1e589a40a63d3f38757252b683d /bootstrap.sh
parent1a742c236b7470fff05bfb85fe74206ca8c08b18 (diff)
Add support for cxx.std=latest, use when building build2
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 3496a1f..54cc9f2 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -130,5 +130,8 @@ src="$src build2/install/*.cxx"
src="$src build2/pkgconfig/*.cxx"
src="$src $libbutl/butl/*.cxx"
+# Note that for as long as we support GCC 4.9 we have to compile in the C++14
+# mode since 4.9 doesn't recognize c++1z.
+#
set -x
"$cxx" "-I$libbutl" -I. '-DBUILD2_HOST_TRIPLET="'"$host"'"' -std=c++1y "$@" -o build2/b-boot $src -lpthread