[compiler-rt] r349156 - Set shared_libasan_path in lit tests for NetBSD

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 14 07:58:06 PST 2018


Author: kamil
Date: Fri Dec 14 07:58:05 2018
New Revision: 349156

URL: http://llvm.org/viewvc/llvm-project?rev=349156&view=rev
Log:
Set shared_libasan_path in lit tests for NetBSD

Reuse the Linux code path.

Modified:
    compiler-rt/trunk/test/asan/lit.cfg

Modified: compiler-rt/trunk/test/asan/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/lit.cfg?rev=349156&r1=349155&r2=349156&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/lit.cfg (original)
+++ compiler-rt/trunk/test/asan/lit.cfg Fri Dec 14 07:58:05 2018
@@ -102,7 +102,7 @@ config.substitutions.append( ("%clangxx
 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))




More information about the llvm-commits mailing list