aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-03-09 16:23:18 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-03-09 16:23:18 +0300
commit4a07276eeeb131587bf53ced693509eb24f7678f (patch)
tree9dab7502d51d5301b1a51b3583bf8f55ba817458 /bootstrap.sh
parent4aaf01a16e4a1bddf9e5d1daea8384fce4a43226 (diff)
Filter out *.test.cxx in bootstrap-mingw.bat and bootstrap.sh
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index a7ee7e2..6116550 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -132,8 +132,17 @@ src="$src build2/in/*.cxx"
src="$src build2/bash/*.cxx"
src="$src $libbutl/libbutl/*.cxx"
+# Filter out *.test.cxx sources.
+#
+r=
+for f in $src; do
+ if test -n "${f##*.test.cxx}"; then
+ r="$r $f"
+ fi
+done
+
# 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_BOOTSTRAP '-DBUILD2_HOST_TRIPLET="'"$host"'"' -std=c++1y "$@" -o build2/b-boot $src -lpthread
+"$cxx" "-I$libbutl" -I. -DBUILD2_BOOTSTRAP '-DBUILD2_HOST_TRIPLET="'"$host"'"' -std=c++1y "$@" -o build2/b-boot $r -lpthread