Adding information about VS support in --version output.

This commit is contained in:
Dmitry Babokin
2016-02-02 16:31:11 +03:00
parent 988e506b1c
commit 9ae39d8361
2 changed files with 19 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
/* /*
Copyright (c) 2015, Intel Corporation Copyright (c) 2015-2016, Intel Corporation
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without

View File

@@ -1,5 +1,5 @@
/* /*
Copyright (c) 2010-2015, Intel Corporation Copyright (c) 2010-2016, Intel Corporation
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
@@ -56,14 +56,28 @@
#define BUILD_DATE __DATE__ #define BUILD_DATE __DATE__
#endif #endif
#define BUILD_VERSION "" #define BUILD_VERSION ""
#if _MSC_VER >= 1900
#define ISPC_VS_VERSION "Visual Studio 2015 and later"
#else
#define ISPC_VS_VERSION "Visual Studio 2013 and earlier"
#endif
#endif // ISPC_IS_WINDOWS #endif // ISPC_IS_WINDOWS
static void static void
lPrintVersion() { lPrintVersion() {
printf("Intel(r) SPMD Program Compiler (ispc), %s (build %s @ %s, LLVM %s)\n", #ifdef ISPC_IS_WINDOWS
ISPC_VERSION, BUILD_VERSION, BUILD_DATE, printf("Intel(r) SPMD Program Compiler (ispc), %s (build date %s, LLVM %s)\n"
ISPC_LLVM_VERSION_STRING "Supported Visual Studio versions: %s.\n",
ISPC_VERSION, BUILD_DATE,
ISPC_LLVM_VERSION_STRING,
ISPC_VS_VERSION
); );
#else
printf("Intel(r) SPMD Program Compiler (ispc), %s (build %s @ %s, LLVM %s)\n",
ISPC_VERSION, BUILD_VERSION, BUILD_DATE,
ISPC_LLVM_VERSION_STRING
);
#endif
} }