Print numeric version number with --verison.

This commit is contained in:
Matt Pharr
2012-03-19 14:41:25 -07:00
parent a062653743
commit 777343331e
2 changed files with 4 additions and 2 deletions

2
ispc.h
View File

@@ -38,6 +38,8 @@
#ifndef ISPC_H
#define ISPC_H
#define ISPC_VERSION "1.2.0dev"
#if !defined(LLVM_2_9) && !defined(LLVM_3_0) && !defined(LLVM_3_0svn) && !defined(LLVM_3_1svn)
#error "Only LLVM 2.9, 3.0, and the 3.1 development branch are supported"
#endif

View File

@@ -65,8 +65,8 @@
static void
lPrintVersion() {
printf("Intel(r) SPMD Program Compiler (ispc), build %s (%s, LLVM %s)\n",
BUILD_DATE, BUILD_VERSION,
printf("Intel(r) SPMD Program Compiler (ispc), %s (build %s @ %s, LLVM %s)\n",
ISPC_VERSION, BUILD_VERSION, BUILD_DATE,
#ifdef LLVM_2_9
"2.9"
#elif defined(LLVM_3_0) || defined(LLVM_3_0svn)