]> granicus.if.org Git - clang/commitdiff
Test fix: only add shared libraries to rpath.
authorGeorge Karpenkov <ekarpenkov@apple.com>
Tue, 22 Aug 2017 02:10:53 +0000 (02:10 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Tue, 22 Aug 2017 02:10:53 +0000 (02:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311422 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains/Darwin.cpp

index ad73303a51786c3d69c21d275a440d9fdeeaf20e..7cbbc80f3063a0004de81582c67366da9d06e2bb 100644 (file)
@@ -998,7 +998,7 @@ void DarwinClang::AddLinkSanitizerLibArgs(const ArgList &Args,
       (Twine("libclang_rt.") + Sanitizer + "_" +
        getOSLibraryNameSuffix() + (Shared ? "_dynamic.dylib" : ".a")).str(),
       /*AlwaysLink*/ true, /*IsEmbedded*/ false,
-      /*AddRPath*/ true);
+      /*AddRPath*/ Shared);
 }
 
 ToolChain::RuntimeLibType DarwinClang::GetRuntimeLibType(