Add ISPC_{MAJOR,MINOR}_VERSION macros

(Currently set to 1.1)
This commit is contained in:
Matt Pharr
2011-11-30 08:32:17 -08:00
parent c995902796
commit 92c46a2fc7

View File

@@ -1171,6 +1171,9 @@ Module::execPreprocessor(const char* infilename, llvm::raw_string_ostream* ostre
FATAL("Unhandled target ISA in preprocessor symbol definition");
}
opts.addMacroDef("ISPC_MAJOR_VERSION=1");
opts.addMacroDef("ISPC_MINOR_VERSION=1");
if (g->includeStdlib) {
if (g->opt.disableAsserts)
opts.addMacroDef("assert(x)=");