automatically adds -D__NVPTX__ when nvptx64 target is chosen
This commit is contained in:
@@ -1914,6 +1914,8 @@ Module::execPreprocessor(const char *infilename, llvm::raw_string_ostream *ostre
|
||||
opts.addMacroDef(g->cppArgs[i].substr(2));
|
||||
}
|
||||
}
|
||||
if (g->target->getISA() == Target::NVPTX64)
|
||||
opts.addMacroDef("__NVPTX__");
|
||||
|
||||
#if defined(LLVM_3_1)
|
||||
inst.getLangOpts().BCPLComment = 1;
|
||||
|
||||
Reference in New Issue
Block a user