forked from OSchip/llvm-project
Fixup for r301007: Restrict the -D hack to Darwin.
llvm-svn: 301017
This commit is contained in:
parent
ca32b682f6
commit
c3ecc4b314
|
@ -1,14 +1,16 @@
|
|||
include(CheckCXXSourceCompiles)
|
||||
|
||||
CHECK_CXX_SOURCE_COMPILES("
|
||||
static thread_local int blah;
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
||||
" HAS_THREAD_LOCAL)
|
||||
if( APPLE )
|
||||
CHECK_CXX_SOURCE_COMPILES("
|
||||
static thread_local int blah;
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
||||
" HAS_THREAD_LOCAL)
|
||||
|
||||
if( NOT HAS_THREAD_LOCAL )
|
||||
if( NOT HAS_THREAD_LOCAL )
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Dthread_local=__thread")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(LIBFUZZER_FLAGS_BASE "${CMAKE_CXX_FLAGS}")
|
||||
|
|
Loading…
Reference in New Issue