[PATCH] D15596: Add -L/path/to/cuda/lib if any of our inputs are CUDA files.
Artem Belevich via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 16 16:21:40 PST 2015
tra added inline comments.
================
Comment at: lib/Driver/Tools.cpp:259-261
@@ -249,1 +258,5 @@
+ // Add -L/path/to/cuda/lib if any of our inputs are .cu files.
+ if (std::any_of(C.getActions().begin(), C.getActions().end(), isCudaAction)) {
+ TC.AddCudaLinkerArgs(Args, CmdArgs);
+ }
}
----------------
Style nit -- no need for curly braces.
http://reviews.llvm.org/D15596
More information about the cfe-commits
mailing list