Set shared_libasan_path in lit tests for NetBSD

Reuse the Linux code path.

llvm-svn: 349156
This commit is contained in:
Kamil Rytarowski 2018-12-14 15:58:05 +00:00
parent de6beb02a5
commit 2ae9783b4f
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ config.substitutions.append( ("%clangxx ", build_invocation(target_cxxflags)) )
config.substitutions.append( ("%clang_asan ", build_invocation(clang_asan_cflags)) )
config.substitutions.append( ("%clangxx_asan ", build_invocation(clang_asan_cxxflags)) )
if config.asan_dynamic:
if config.host_os == 'Linux':
if config.host_os in ['Linux', 'NetBSD']:
shared_libasan_path = os.path.join(config.compiler_rt_libdir, "libclang_rt.asan{}.so".format(config.target_suffix))
elif config.host_os == 'Darwin':
shared_libasan_path = os.path.join(config.compiler_rt_libdir, 'libclang_rt.asan_{}_dynamic.dylib'.format(config.apple_platform))