forked from OSchip/llvm-project
[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
This commit is contained in:
parent
7a6a2cc81a
commit
b01b964d37
|
@ -160,6 +160,7 @@ macro(add_sanitizer_tests_for_arch arch)
|
||||||
# Test that the libc-independent part of sanitizer_common is indeed
|
# Test that the libc-independent part of sanitizer_common is indeed
|
||||||
# independent of libc, by linking this binary without libc (here) and
|
# independent of libc, by linking this binary without libc (here) and
|
||||||
# executing it (unit test in sanitizer_nolibc_test.cpp).
|
# 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
|
clang_compile(sanitizer_nolibc_test_main.${arch}.o
|
||||||
sanitizer_nolibc_test_main.cpp
|
sanitizer_nolibc_test_main.cpp
|
||||||
CFLAGS ${SANITIZER_TEST_CFLAGS_COMMON} ${TARGET_FLAGS}
|
CFLAGS ${SANITIZER_TEST_CFLAGS_COMMON} ${TARGET_FLAGS}
|
||||||
|
|
Loading…
Reference in New Issue