[PATCH] D76582: [Hexagon] Don't clear libpath when target is linux-musl
Sid Manning via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 22 18:47:39 PDT 2020
sidneym created this revision.
sidneym added reviewers: kparzysz, bcain, adasgupt.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Use the default libpath when the target is linux-musl
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76582
Files:
clang/lib/Driver/ToolChains/Hexagon.cpp
Index: clang/lib/Driver/ToolChains/Hexagon.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Hexagon.cpp
+++ clang/lib/Driver/ToolChains/Hexagon.cpp
@@ -499,11 +499,10 @@
ToolChain::path_list &LibPaths = getFilePaths();
- // Remove paths added by Linux toolchain. Currently Hexagon_TC really targets
- // 'elf' OS type, so the Linux paths are not appropriate. When we actually
- // support 'linux' we'll need to fix this up
- LibPaths.clear();
- getHexagonLibraryPaths(Args, LibPaths);
+ if (!Triple.isMusl()) {
+ LibPaths.clear();
+ getHexagonLibraryPaths(Args, LibPaths);
+ }
}
HexagonToolChain::~HexagonToolChain() {}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76582.251932.patch
Type: text/x-patch
Size: 699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200323/b6461b62/attachment.bin>
More information about the cfe-commits
mailing list