Skip to content

Commit

Permalink
unbreak cmake check for TLS support
Browse files Browse the repository at this point in the history
  • Loading branch information
alk committed Feb 14, 2021
1 parent 7c106ca commit 7271bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ elseif(APPLE)
elseif(MINGW)
message(WARNING "mingw doesn't really support tls")
else()
check_c_source_compiles("static __thread int p = 0;" HAVE_TLS)
check_c_source_compiles("static __thread int p = 0; int main() {}" HAVE_TLS)
endif()

if(NEED_NANOSLEEP)
Expand Down

0 comments on commit 7271bb7

Please sign in to comment.