[compiler-rt] b01b964 - [compiler-rt][tests] Define TARGET_FLAGS
Harald van Dijk via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 30 05:06:22 PST 2021
Author: Harald van Dijk
Date: 2021-01-30T13:06:08Z
New Revision: b01b964d3776956ef415a10c57cf612add55bba9
URL: https://github.com/llvm/llvm-project/commit/b01b964d3776956ef415a10c57cf612add55bba9
DIFF: https://github.com/llvm/llvm-project/commit/b01b964d3776956ef415a10c57cf612add55bba9.diff
LOG: [compiler-rt][tests] Define TARGET_FLAGS
D36116 refactored the logic of tests and removed the definition of TARGET_FLAGS, but left one use of it. Restore its definition for that one use, so that an x86_64 test is compiled with -m64.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D93634
Added:
Modified:
compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt b/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
index abd73ca81bbd..0a5cf2588b6a 100644
--- a/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
+++ b/compiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
@@ -160,6 +160,7 @@ macro(add_sanitizer_tests_for_arch arch)
# Test that the libc-independent part of sanitizer_common is indeed
# independent of libc, by linking this binary without libc (here) and
# executing it (unit test in sanitizer_nolibc_test.cpp).
+ get_target_flags_for_arch(${arch} TARGET_FLAGS)
clang_compile(sanitizer_nolibc_test_main.${arch}.o
sanitizer_nolibc_test_main.cpp
CFLAGS ${SANITIZER_TEST_CFLAGS_COMMON} ${TARGET_FLAGS}
More information about the llvm-commits
mailing list