[PATCH] D142133: [LinkerWrapper] Use `clang` to perform the device linking
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 19 09:23:12 PST 2023
jhuber6 created this revision.
jhuber6 added reviewers: tra, JonChesterfield, tianshilei1992, jdoerfert.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added subscribers: cfe-commits, sstefan1.
Herald added a project: clang.
Right now in the linker wrapper we manually invoke a lot of the
toolchain programs. This reproduces a lot of logic that is already
handled in clang. Since D140158 <https://reviews.llvm.org/D140158> we can now target all supported
toolchains directly via cross-compilation.
This patch changes the linker wrapper to consolidate all the alternate
linking and assembler steps into a generic call to `clang` and let clang
handle the argument handling. This heavily simplifies the interface.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D142133
Files:
clang/test/Driver/linker-wrapper.c
clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142133.490554.patch
Type: text/x-patch
Size: 23420 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230119/4843177b/attachment-0001.bin>
More information about the cfe-commits
mailing list