Test fix: only add shared libraries to rpath.

llvm-svn: 311422
This commit is contained in:
George Karpenkov 2017-08-22 02:10:53 +00:00
parent 33fb36c353
commit 5509c73a14
1 changed files with 1 additions and 1 deletions

View 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(