forked from OSchip/llvm-project
[msan] Restrict -ftls-model=initial-exec to FreeBSD
Noted by <eugenis> in D43613 llvm-svn: 326649
This commit is contained in:
parent
3f7f960a34
commit
8ec9586851
|
@ -17,7 +17,9 @@ set(MSAN_RTL_CXX_SOURCES
|
|||
|
||||
|
||||
set(MSAN_RTL_CFLAGS ${SANITIZER_COMMON_CFLAGS})
|
||||
append_list_if(COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC -ftls-model=initial-exec MSAN_RTL_CFLAGS)
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
append_list_if(COMPILER_RT_HAS_FTLS_MODEL_INITIAL_EXEC -ftls-model=initial-exec MSAN_RTL_CFLAGS)
|
||||
endif()
|
||||
append_rtti_flag(OFF MSAN_RTL_CFLAGS)
|
||||
if(NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
append_list_if(COMPILER_RT_HAS_FPIE_FLAG -fPIE MSAN_RTL_CFLAGS)
|
||||
|
|
Loading…
Reference in New Issue