Skip to content

Commit

Permalink
test: use -pthread when $CXX is g++
Browse files Browse the repository at this point in the history
  • Loading branch information
Tachi107 authored and HowardHinnant committed Nov 2, 2021
1 parent 529a092 commit 655b249
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/testit
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 655b249

Please sign in to comment.