[PATCH] D15596: Add -L/path/to/cuda/lib if any of our inputs are CUDA files.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 6 15:07:57 PST 2016


jlebar added inline comments.

================
Comment at: include/clang/Driver/Options.td:1636
@@ -1635,1 +1635,3 @@
+def nocudalib : Flag<["-"], "nocudalib">,
+  HelpText<"Don't link with libraries necessary for running CUDA (-L/path/to/cuda/lib{,64} -lcudart_static -lrt -lpthread -ldl)">;
 def nocudalibdevice : Flag<["-"], "nocudalibdevice">,
----------------
tra wrote:
> Implementation details may be different on different platforms. I.e. you may need to link with different set of libraries if/when we add missing bits for windows and your help string will make no sense there.
> 
> Specifics should be in the documentation, IMO.
> 
> 
OK, that's a good reason not to do it in the command-line help.


http://reviews.llvm.org/D15596





More information about the cfe-commits mailing list