]> granicus.if.org Git - clang/commit
[CUDA] Initialize our header search using the host triple.
authorJustin Lebar <jlebar@google.com>
Fri, 18 Nov 2016 00:41:27 +0000 (00:41 +0000)
committerJustin Lebar <jlebar@google.com>
Fri, 18 Nov 2016 00:41:27 +0000 (00:41 +0000)
commit6e52c89eefc5400f824e3708cad3c6bddb0c4afa
treed47b4fa4518c723cb169eacb7dbe27615d95376f
parent29df057cd37a1bd4480ecc4100f5f43360f55242
[CUDA] Initialize our header search using the host triple.

Summary:
This used to work because system headers are found in a (somewhat)
predictable set of locations on Linux.  But this is not the case on
MacOS; without this change, we don't look in the right places for our
headers when doing device-side compilation on Mac.

Reviewers: tra

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D26776

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@287286 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/CompilerInstance.cpp
test/Preprocessor/cuda-macos-includes.cu [new file with mode: 0644]