Adding information about VS support in --version output.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
22
main.cpp
22
main.cpp
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user