tra accepted this revision.
tra added a comment.
This revision is now accepted and ready to land.
Minor nit, but looks good otherwise.
================
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">,
----------------
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.
================
Comment at: lib/Driver/ToolChains.cpp:4130
@@ +4129,3 @@
+ LDArgs.push_back(DriverArgs.MakeArgString(CudaInstallation.getLibPath()));
+ for (const char *Flag : {"-lcudart_static", "-ldl", "-lrt", "-lpthread"}) {
+ LDArgs.push_back(DriverArgs.MakeArgString(Flag));
----------------
{}, again.
:-)
http://reviews.llvm.org/D15596
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits