================
@@ -525,6 +564,11 @@ Expected<SmallVector<StringRef>> getInput(const ArgList
&Args) {
object::Archive::create(Buffer);
if (!LibFile)
return LibFile.takeError();
+ // Skip extracting archives with fat binaries. Forward them to nvlink.
+ if (hasFatBinary(**LibFile)) {
+ ForwardArchives.emplace_back(Args.MakeArgString(*Filename));
----------------
jhuber6 wrote:
The nvlink wrapper knows which SM it's compiling for, as it's a required
argument to `nvlink`. Pretty much everything in clang is reverse engineered
anyways. I actually want to have the above code as a general utility since
we'll have a future use for it in the offloading runtime so I'm not concerned
with the extra code there.
https://github.com/llvm/llvm-project/pull/165519
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits