From 777343331ea5b67372136c540f9564ba1c9357d4 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Mon, 19 Mar 2012 14:41:25 -0700 Subject: [PATCH] Print numeric version number with --verison. --- ispc.h | 2 ++ main.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ispc.h b/ispc.h index 32999231..b5d0a3ab 100644 --- a/ispc.h +++ b/ispc.h @@ -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 diff --git a/main.cpp b/main.cpp index 538414b6..4ce164bf 100644 --- a/main.cpp +++ b/main.cpp @@ -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)