From 41f8ef3e3183145a49366bb4cc639dd13664d0c6 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 21 Sep 2021 21:17:28 +0200 Subject: [PATCH] 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 --- compiler-rt/lib/tsan/tests/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler-rt/lib/tsan/tests/CMakeLists.txt b/compiler-rt/lib/tsan/tests/CMakeLists.txt index 56a4278..d487660 100644 --- a/compiler-rt/lib/tsan/tests/CMakeLists.txt +++ b/compiler-rt/lib/tsan/tests/CMakeLists.txt @@ -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}) -- 2.7.4