aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2015-11-17 22:28:46 +0000
committerArtem Belevich <tra@google.com>2015-11-17 22:28:46 +0000
commitfa11ab53c05c99329b68fa6105afe2df9b7a8f9e (patch)
tree110999d2f926287c9174f40f9f3917497e127e6d /clang/lib/Frontend/CompilerInvocation.cpp
parent5e2a3ecd48de772e65c4bef2439669390f870f48 (diff)
downloadllvm-fa11ab53c05c99329b68fa6105afe2df9b7a8f9e.zip
llvm-fa11ab53c05c99329b68fa6105afe2df9b7a8f9e.tar.gz
llvm-fa11ab53c05c99329b68fa6105afe2df9b7a8f9e.tar.bz2
[CUDA] added include paths for both sides of CUDA compilation.
In order to compile a CUDA file clang must be able to find include files for both both host and device. This patch passes AuxToolchain to AddPreprocessingOptions and uses it to add include paths for the opposite side of compilation. We also must be able to find CUDA include files. If the driver found CUDA installation, it adds appropriate include path to CUDA headers. This can be disabled with '-nocudainc'. - Added include paths for the opposite side of compilation. - Added include paths to detected CUDA installation. - Added -nocudainc to prevent adding CUDA include path. - Added test cases to verify new functionality. Differential Revision: http://reviews.llvm.org/D13170 llvm-svn: 253386
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions