[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:
Harald van Dijk 2021-01-30 13:06:08 +00:00
parent 7a6a2cc81a
commit b01b964d37
No known key found for this signature in database
GPG Key ID: 7D71BB318A5BD56D
1 changed files with 1 additions and 0 deletions

View File

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