hanchenye-llvm-project/compiler-rt/lib
Collin Baker 8c66d78172 [test] Fix asan dynamic unit tests with per-target runtime dirs
When LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=on
Asan-i386-calls-Dynamic-Test and Asan-i386-inline-Dynamic-Test fail to
run on a x86_64 host. This is because asan's unit test lit files are
configured once, rather than per target arch as with the non-unit
tests. LD_LIBRARY_PATH ends up incorrect, and the tests try linking
against the x86_64 runtime which fails.

This changes the unit test CMake machinery to configure the default
and dynamic unit tests once per target arch, similar to the other asan
tests. Then the fix from https://reviews.llvm.org/D108859 is adapted
to the unit test Lit files with some modifications.

Fixes PR52158.

Differential Revision: https://reviews.llvm.org/D111756
2021-10-14 16:47:25 -04:00
..
BlocksRuntime
asan [test] Fix asan dynamic unit tests with per-target runtime dirs 2021-10-14 16:47:25 -04:00
builtins [compiler-rt] Implement __clear_cache() on OpenBSD/riscv64 2021-09-17 15:42:05 -04:00
cfi
crt
dfsan [NFC][sanitizer] Remove includes from header 2021-10-08 14:27:05 -07:00
fuzzer [libFuzzer] Use octal instead of hex escape sequences in PrintASCII 2021-10-04 11:29:54 +02:00
gwp_asan [gwp-asan] Initialize AllocatorVersionMagic at runtime 2021-09-27 13:49:55 -07:00
hwasan Reland [sanitizer] Support Intel CET 2021-10-08 10:22:39 -07:00
interception [compiler-rt] [windows] Add more assembly patterns for interception 2021-09-21 15:51:58 -07:00
lsan [sanitizer] Remove StackDepotReverseMap 2021-10-12 15:59:27 -07:00
memprof [MemProf] Record accesses for all words touched in mem intrinsic 2021-09-30 15:07:55 -07:00
msan [msan] Print both shadow and user address 2021-10-07 17:56:46 -07:00
orc [Orc] Support atexit in Orc(JITLink) 2021-10-09 12:25:47 +08:00
profile [profile] Remove emitting symbolizer markup 2021-10-13 01:43:07 +00:00
safestack
sanitizer_common [sanitizer] Move out stack trace pointer from header StackDepot 2021-10-14 09:23:04 -07:00
scudo [scudo] Skip AllocAfterFork test on machines with low max_map_count 2021-10-11 10:33:47 -07:00
stats
tsan [NFC][sanitizer] Remove sanitizer_persistent_allocator.cpp 2021-10-08 13:43:28 -07:00
ubsan
ubsan_minimal
xray
CMakeLists.txt