unbreak cmake check for TLS support

This commit is contained in:
Aliaksey Kandratsenka 2021-02-14 14:22:08 -08:00
parent 7c106ca241
commit 7271bb72be
1 changed files with 1 additions and 1 deletions

View File

@ -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)