[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 11:59:45 PST 2016


jlebar updated this revision to Diff 44145.
jlebar added a dependency: D15933: Rename -nocudalib to -nocudalibdevice..
jlebar added a comment.

Now also pass -lcudart_static -lcuda -ldl -lrt -pthread for CUDA compiles.

Depends on http://reviews.llvm.org/D15933.


http://reviews.llvm.org/D15596

Files:
  include/clang/Driver/Options.td
  include/clang/Driver/ToolChain.h
  lib/Driver/ToolChain.cpp
  lib/Driver/ToolChains.cpp
  lib/Driver/ToolChains.h
  lib/Driver/Tools.cpp
  test/Driver/cuda-default-libs.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15596.44145.patch
Type: text/x-patch
Size: 14608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160106/94285cf0/attachment-0001.bin>


More information about the cfe-commits mailing list