test: use -pthread when $CXX is g++

Fixes https://github.com/HowardHinnant/date/issues/713
This commit is contained in:
Andrea Pappacoda 2021-11-02 18:20:04 +01:00 committed by Howard Hinnant
parent 529a09267f
commit 655b249b8f

View File

@ -48,6 +48,12 @@ if [ -z "$CXX_LANG" ]
then
CXX_LANG=c++17
fi
if expr "$CXX" : ".*g++" >/dev/null
then
OPTIONS="$OPTIONS -pthread"
fi
OPTIONS="-std=${CXX_LANG} $OPTIONS -I$ROOT -Wall $ROOT/src/tz.cpp -lcurl"
echo $ROOT