summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains/CommonArgs.cpp
diff options
context:
space:
mode:
authorPirama Arumuga Nainar <pirama@google.com>2017-03-14 16:58:07 +0000
committerPirama Arumuga Nainar <pirama@google.com>2017-03-14 16:58:07 +0000
commitb9d8062eda0204206dbf149b52c0a13238e57a78 (patch)
treea431f7f2c2cfd2e2d11f41255e310d63da1d0b47 /clang/lib/Driver/ToolChains/CommonArgs.cpp
parent2b9f48afdd67dcfdd37d7afe6a34059cd390fc21 (diff)
downloadbcm5719-llvm-b9d8062eda0204206dbf149b52c0a13238e57a78.tar.gz
bcm5719-llvm-b9d8062eda0204206dbf149b52c0a13238e57a78.zip
[Driver] Add flag to request arch-specific-subdir in -rpath
Summary: This patch adds -f[no-]rtlib-add-rpath, which if enabled, embeds the arch-specific subdirectory in resource directory using -rpath (instead of doing so only during native compilation). This patch also re-enables test arch-specific-libdir.c which was silently unsupported because of the REQUIRES tag 'linux'. Reviewers: bkramer, rnk, mgorny Subscribers: srhines, cfe-commits Differential Revision: https://reviews.llvm.org/D30700 llvm-svn: 297751
Diffstat (limited to 'clang/lib/Driver/ToolChains/CommonArgs.cpp')
-rw-r--r--clang/lib/Driver/ToolChains/CommonArgs.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/Driver/ToolChains/CommonArgs.cpp b/clang/lib/Driver/ToolChains/CommonArgs.cpp
index 5afe1358657..48a2cf038d5 100644
--- a/clang/lib/Driver/ToolChains/CommonArgs.cpp
+++ b/clang/lib/Driver/ToolChains/CommonArgs.cpp
@@ -419,10 +419,6 @@ void tools::AddGoldPlugin(const ToolChain &ToolChain, const ArgList &Args,
void tools::addArchSpecificRPath(const ToolChain &TC, const ArgList &Args,
ArgStringList &CmdArgs) {
- // In the cross-compilation case, arch-specific library path is likely
- // unavailable at runtime.
- if (TC.isCrossCompiling()) return;
-
std::string CandidateRPath = TC.getArchSpecificLibPath();
if (TC.getVFS().exists(CandidateRPath)) {
CmdArgs.push_back("-rpath");
OpenPOWER on IntegriCloud