r311422 - Test fix: only add shared libraries to rpath.
George Karpenkov via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 21 19:10:53 PDT 2017
Author: george.karpenkov
Date: Mon Aug 21 19:10:53 2017
New Revision: 311422
URL: http://llvm.org/viewvc/llvm-project?rev=311422&view=rev
Log:
Test fix: only add shared libraries to rpath.
Modified:
cfe/trunk/lib/Driver/ToolChains/Darwin.cpp
Modified: cfe/trunk/lib/Driver/ToolChains/Darwin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Darwin.cpp?rev=311422&r1=311421&r2=311422&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains/Darwin.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains/Darwin.cpp Mon Aug 21 19:10:53 2017
@@ -998,7 +998,7 @@ void DarwinClang::AddLinkSanitizerLibArg
(Twine("libclang_rt.") + Sanitizer + "_" +
getOSLibraryNameSuffix() + (Shared ? "_dynamic.dylib" : ".a")).str(),
/*AlwaysLink*/ true, /*IsEmbedded*/ false,
- /*AddRPath*/ true);
+ /*AddRPath*/ Shared);
}
ToolChain::RuntimeLibType DarwinClang::GetRuntimeLibType(
More information about the cfe-commits
mailing list