Fix Windows build
This commit is contained in:
@@ -245,8 +245,13 @@ Module::Module(const char *fn) {
|
|||||||
GetDirectoryAndFileName(g->currentDirectory, filename, &directory,
|
GetDirectoryAndFileName(g->currentDirectory, filename, &directory,
|
||||||
&name);
|
&name);
|
||||||
char producerString[512];
|
char producerString[512];
|
||||||
|
#if defined(BUILD_VERSION) && defined (BUILD_DATE)
|
||||||
sprintf(producerString, "ispc version %s (build %s on %s)",
|
sprintf(producerString, "ispc version %s (build %s on %s)",
|
||||||
ISPC_VERSION, BUILD_VERSION, BUILD_DATE);
|
ISPC_VERSION, BUILD_VERSION, BUILD_DATE);
|
||||||
|
#else
|
||||||
|
sprintf(producerString, "ispc version %s (built on %s)",
|
||||||
|
ISPC_VERSION, __DATE__);
|
||||||
|
#endif
|
||||||
diBuilder->createCompileUnit(llvm::dwarf::DW_LANG_C99, /* lang */
|
diBuilder->createCompileUnit(llvm::dwarf::DW_LANG_C99, /* lang */
|
||||||
name, /* filename */
|
name, /* filename */
|
||||||
directory, /* directory */
|
directory, /* directory */
|
||||||
|
|||||||
Reference in New Issue
Block a user