Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Commit

Permalink
[ASan] Run LSan for ASan unit tests only on 64-bit Linux
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200537 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Alexey Samsonov committed Jan 31, 2014
1 parent d2bd15c commit 7c8ecc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/asan/lit_tests/Unit/lit.site.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -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'
1 change: 1 addition & 0 deletions lib/lit.common.unit.configured.in
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7c8ecc2

Please sign in to comment.