[compiler-rt] r364394 - [compiler-rt][test] Set shared_libasan_path in test/asan/lit.cfg on Solaris

Rainer Orth via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 01:19:57 PDT 2019


Author: ro
Date: Wed Jun 26 01:19:57 2019
New Revision: 364394

URL: http://llvm.org/viewvc/llvm-project?rev=364394&view=rev
Log:
[compiler-rt][test] Set shared_libasan_path in test/asan/lit.cfg on Solaris

While checking warnings from the Solaris buildbots, I noticed

  llvm-lit: /opt/llvm-buildbot/home/solaris11-amd64/clang-solaris11-amd64/llvm/projects/compiler-rt/test/asan/lit.cfg:119: warning: %shared_libasan substitution not set but dynamic ASan is available.

Fixed as follows.  Tested on x86_64-pc-solaris2.11.

Differential Revision: https://reviews.llvm.org/D63761

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=364394&r1=364393&r2=364394&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/lit.cfg (original)
+++ compiler-rt/trunk/test/asan/lit.cfg Wed Jun 26 01:19:57 2019
@@ -111,7 +111,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 in ['Linux', 'NetBSD']:
+  if config.host_os in ['Linux', 'NetBSD', 'SunOS']:
     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