From 7271bb72be08db491d3f0c60c1b0d5593cc1b5b5 Mon Sep 17 00:00:00 2001 From: Aliaksey Kandratsenka Date: Sun, 14 Feb 2021 14:22:08 -0800 Subject: [PATCH] unbreak cmake check for TLS support --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a51e5df..29791b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)