From bdf59acec6008ed64d2537c5131c9537756de43a Mon Sep 17 00:00:00 2001 From: Darin Date: Mon, 23 Sep 2019 09:42:02 -0700 Subject: [PATCH] Disable TLS for MINGW due to issues with the order of freeing up memory. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e6fac6cbdb8..6435a9d9c71 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -243,6 +243,7 @@ elseif(FORCE_SSE42) message(FATAL_ERROR "FORCE_SSE42=ON but unable to compile with SSE4.2 enabled") endif() +if(NOT MINGW) CHECK_CXX_SOURCE_COMPILES(" #if defined(_MSC_VER) && !defined(__thread) #define __thread __declspec(thread) @@ -254,6 +255,7 @@ int main() { if(HAVE_THREAD_LOCAL) add_definitions(-DROCKSDB_SUPPORT_THREAD_LOCAL) endif() +endif() option(FAIL_ON_WARNINGS "Treat compile warnings as errors" ON) if(FAIL_ON_WARNINGS)