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:
Dmitry Vyukov 2021-09-21 21:17:28 +02:00
parent cf93f7677d
commit 41f8ef3e31
1 changed files with 2 additions and 0 deletions

View File

@ -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})