================
@@ -497,6 +497,11 @@ Expected<SmallVector<StringRef>> getInput(const ArgList
&Args) {
continue;
}
+ // Skip '-lcudadevrt'.
+ if (Arg->getOption().matches(OPT_library) &&
+ StringRef(Arg->getValue()) == "cudadevrt")
----------------
jhuber6 wrote:
I don't know how CUDA handles these fat binaries exactly, I'm assuming `nvlink`
does some magic there. Any option passed to the linker will be forwarded to
`nvlink`. I suppose one problem might be the fact that we do LTO and stuff so
it might get confused if binaries for another target are in there? Is it really
not working if you just pass `-lcudadevrt` to the wrapper?
https://github.com/llvm/llvm-project/pull/165519
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits