[PATCH] D115403: [clang][driver] update the darwin driver to point to correct macho_embedded path
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 8 15:25:32 PST 2021
arphaman created this revision.
arphaman added reviewers: bro4all, Ericson2314, ravikandhadai.
Herald added a subscriber: ributzka.
arphaman requested review of this revision.
Herald added a project: clang.
Compiler-rt started emitting the macho_embedded libraries in <resource_dir>/lib/darwin/macho_embedded in https://reviews.llvm.org/D105765 / 1e03c37b97b6176a60404d84665c40321f4e33a4 <https://reviews.llvm.org/rG1e03c37b97b6176a60404d84665c40321f4e33a4>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D115403
Files:
clang/lib/Driver/ToolChains/Darwin.cpp
clang/test/Driver/Inputs/resource_dir/lib/darwin/macho_embedded/libclang_rt.hard_pic.a
clang/test/Driver/Inputs/resource_dir/lib/darwin/macho_embedded/libclang_rt.hard_static.a
clang/test/Driver/Inputs/resource_dir/lib/darwin/macho_embedded/libclang_rt.soft_pic.a
clang/test/Driver/Inputs/resource_dir/lib/darwin/macho_embedded/libclang_rt.soft_static.a
clang/test/Driver/Inputs/resource_dir/lib/macho_embedded/libclang_rt.hard_pic.a
clang/test/Driver/Inputs/resource_dir/lib/macho_embedded/libclang_rt.hard_static.a
clang/test/Driver/Inputs/resource_dir/lib/macho_embedded/libclang_rt.soft_pic.a
clang/test/Driver/Inputs/resource_dir/lib/macho_embedded/libclang_rt.soft_static.a
Index: clang/lib/Driver/ToolChains/Darwin.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Darwin.cpp
+++ clang/lib/Driver/ToolChains/Darwin.cpp
@@ -1152,8 +1152,9 @@
DarwinLibName += getOSLibraryNameSuffix();
DarwinLibName += IsShared ? "_dynamic.dylib" : ".a";
SmallString<128> Dir(getDriver().ResourceDir);
- llvm::sys::path::append(
- Dir, "lib", (Opts & RLO_IsEmbedded) ? "macho_embedded" : "darwin");
+ llvm::sys::path::append(Dir, "lib", "darwin");
+ if (Opts & RLO_IsEmbedded)
+ llvm::sys::path::append(Dir, "macho_embedded");
SmallString<128> P(Dir);
llvm::sys::path::append(P, DarwinLibName);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115403.392950.patch
Type: text/x-patch
Size: 686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211208/3c8f57ec/attachment.bin>
More information about the cfe-commits
mailing list