forked from HowardHinnant/date
test: use -pthread when $CXX is g++
Fixes https://github.com/HowardHinnant/date/issues/713
This commit is contained in:
committed by
Howard Hinnant
parent
529a09267f
commit
655b249b8f
@@ -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
|
||||
|
Reference in New Issue
Block a user