From 4a07276eeeb131587bf53ced693509eb24f7678f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 9 Mar 2019 16:23:18 +0300 Subject: Filter out *.test.cxx in bootstrap-mingw.bat and bootstrap.sh --- bootstrap.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'bootstrap.sh') 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 -- cgit v1.1