================
@@ -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));
----------------
darkbuck wrote:
fatbin may contain more cubins for each target. That code only extracts the
fatbin section, but we extract the cubin for that specified target. Even if we
could reverse-engineer that, it's risky to handle objects/archives generated
from nvcc toolchains in the future. Can we just put those archives with fatbin
at the end?
https://github.com/llvm/llvm-project/pull/165519
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits