[ASan] Run LSan for ASan unit tests only on 64-bit Linux

llvm-svn: 200537
This commit is contained in:
Alexey Samsonov 2014-01-31 11:44:32 +00:00
parent e925e53114
commit fd99206ee4
2 changed files with 3 additions and 1 deletions

View File

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

View File

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