mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-26 07:53:16 +08:00
test: use -pthread when $CXX is g++
Fixes https://github.com/HowardHinnant/date/issues/713
This commit is contained in:
parent
529a09267f
commit
655b249b8f
@ -48,6 +48,12 @@ if [ -z "$CXX_LANG" ]
|
|||||||
then
|
then
|
||||||
CXX_LANG=c++17
|
CXX_LANG=c++17
|
||||||
fi
|
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"
|
OPTIONS="-std=${CXX_LANG} $OPTIONS -I$ROOT -Wall $ROOT/src/tz.cpp -lcurl"
|
||||||
|
|
||||||
echo $ROOT
|
echo $ROOT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user