Compile CUDA even if we can't link
Summary:
CUDA autodetection gets upset if it can't find some support files.
These files are only necessary for linking.
We only do semantic analysis, so let's tell CUDA to calm down.
Reviewers: shahms, fromberger, #core_team, schroederc
Subscribers: #core_team
@@ -173,6 +173,7 @@ std::string IndexCompilationUnit(
std::vector<std::string> Args(Unit.argument().begin(), Unit.argument().end());
Args.insert(Args.begin() + 1, "-fsyntax-only");
Args.insert(Args.begin() + 1, "-w");
+ Args.insert(Args.begin() + 1, "-nocudalib");
if (!FixupArgument.empty()) {
Args.insert(Args.begin() + 1, FixupArgument);
}
