diff options
author | Artem Belevich <tra@google.com> | 2015-11-17 22:28:46 +0000 |
---|---|---|
committer | Artem Belevich <tra@google.com> | 2015-11-17 22:28:46 +0000 |
commit | fa11ab53c05c99329b68fa6105afe2df9b7a8f9e (patch) | |
tree | 110999d2f926287c9174f40f9f3917497e127e6d /clang/lib/Driver/Tools.h | |
parent | 5e2a3ecd48de772e65c4bef2439669390f870f48 (diff) | |
download | bcm5719-llvm-fa11ab53c05c99329b68fa6105afe2df9b7a8f9e.tar.gz bcm5719-llvm-fa11ab53c05c99329b68fa6105afe2df9b7a8f9e.zip |
[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/Driver/Tools.h')
-rw-r--r-- | clang/lib/Driver/Tools.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Driver/Tools.h b/clang/lib/Driver/Tools.h index 7a7c642e356..95c2063695c 100644 --- a/clang/lib/Driver/Tools.h +++ b/clang/lib/Driver/Tools.h @@ -57,7 +57,8 @@ private: const Driver &D, const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs, const InputInfo &Output, - const InputInfoList &Inputs) const; + const InputInfoList &Inputs, + const ToolChain *AuxToolChain) const; void AddAArch64TargetArgs(const llvm::opt::ArgList &Args, llvm::opt::ArgStringList &CmdArgs) const; |