From: George Karpenkov Date: Tue, 22 Aug 2017 02:10:53 +0000 (+0000) Subject: Test fix: only add shared libraries to rpath. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6cb65611095e589eb5002f63705bb1b667bed89;p=clang Test fix: only add shared libraries to rpath. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311422 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/ToolChains/Darwin.cpp b/lib/Driver/ToolChains/Darwin.cpp index ad73303a51..7cbbc80f30 100644 --- a/lib/Driver/ToolChains/Darwin.cpp +++ b/lib/Driver/ToolChains/Darwin.cpp @@ -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(