- remove TLS workaround and turn it into an actual error since it is required in order to even properly compile and not all systems properly detect this.

(cherry picked from commit a23259f26a)
This commit is contained in:
Rachael Alexanderson 2018-04-13 09:10:33 -04:00 committed by drfrag666
parent be304a4929
commit a82f428910

View file

@ -435,8 +435,7 @@ CHECK_CXX_SOURCE_COMPILES("thread_local int i; int main() { i = 0; }"
HAVE_THREAD_LOCAL)
if( NOT HAVE_THREAD_LOCAL )
message( WARNING "C++ compiler doesn't support thread_local storage duration specifier" )
add_definitions( -Dthread_local= )
message( SEND_ERROR "C++ compiler doesn't support thread_local storage duration specifier" )
endif()
# Check for functions that may or may not exist.