Skip to content

Commit

Permalink
Merge pull request #57 from darinpp/crl-release-6.2.1
Browse files Browse the repository at this point in the history
Disable TLS for MINGW due to issues with the order of freeing up memory.
  • Loading branch information
darinpp authored Sep 23, 2019
2 parents afdceb8 + bdf59ac commit 8978e86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 8978e86

Please sign in to comment.