summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAliaksey Kandratsenka <alkondratenko@gmail.com>2021-02-14 14:22:08 -0800
committerAliaksey Kandratsenka <alkondratenko@gmail.com>2021-02-14 15:44:14 -0800
commit7271bb72be08db491d3f0c60c1b0d5593cc1b5b5 (patch)
treeeb95529c8c0022a8129c6623a4e2c390f751acf1
parent7c106ca241a344993f8011397de8004a224e094a (diff)
downloadgperftools-7271bb72be08db491d3f0c60c1b0d5593cc1b5b5.tar.gz
unbreak cmake check for TLS support
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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)