forked from OSchip/llvm-project
[ASan] Run LSan for ASan unit tests only on 64-bit Linux
llvm-svn: 200537
This commit is contained in:
parent
e925e53114
commit
fd99206ee4
|
@ -12,5 +12,6 @@ config.name = 'AddressSanitizer-Unit'
|
|||
config.test_exec_root = "@ASAN_BINARY_DIR@/tests"
|
||||
config.test_source_root = config.test_exec_root
|
||||
|
||||
if config.host_os == 'Linux':
|
||||
# Enable leak detection in ASan unit tests on x86_64-linux.
|
||||
if config.host_os == 'Linux' and config.host_arch == 'x86_64':
|
||||
config.environment['ASAN_OPTIONS'] = 'detect_leaks=1'
|
||||
|
|
|
@ -8,6 +8,7 @@ config.llvm_obj_root = "@LLVM_BINARY_DIR@"
|
|||
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
|
||||
config.compiler_rt_src_root = "@COMPILER_RT_SOURCE_DIR@"
|
||||
config.llvm_build_mode = "@LLVM_BUILD_MODE@"
|
||||
config.host_arch = "@HOST_ARCH@"
|
||||
config.host_os = "@HOST_OS@"
|
||||
|
||||
# LLVM tools dir and build mode can be passed in lit parameters,
|
||||
|
|
Loading…
Reference in New Issue