forked from OSchip/llvm-project
tsan: enable sse4.2 in tests
Pass -msse4.2 flag to the tests the same way we do for the runtime. Layout of some structs in the runtime headers depends on the flag (TSAN_VECTORIZE), so we need it to be consistent across the runtime and tests. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D110192
This commit is contained in:
parent
cf93f7677d
commit
41f8ef3e31
|
@ -20,6 +20,8 @@ if(COMPILER_RT_TSAN_DEBUG_OUTPUT)
|
|||
-DTSAN_DEBUG_OUTPUT=2)
|
||||
endif()
|
||||
|
||||
append_list_if(COMPILER_RT_HAS_MSSE4_2_FLAG -msse4.2 TSAN_UNITTEST_CFLAGS)
|
||||
|
||||
set(TSAN_TEST_ARCH ${TSAN_SUPPORTED_ARCH})
|
||||
|
||||
set(LINK_FLAGS ${COMPILER_RT_UNITTEST_LINK_FLAGS})
|
||||
|
|
Loading…
Reference in New Issue