aboutsummaryrefslogtreecommitdiff
path: root/win32/vs2015/PreBuild.bat
diff options
context:
space:
mode:
Diffstat (limited to 'win32/vs2015/PreBuild.bat')
-rw-r--r--win32/vs2015/PreBuild.bat9
1 files changed, 9 insertions, 0 deletions
diff --git a/win32/vs2015/PreBuild.bat b/win32/vs2015/PreBuild.bat
new file mode 100644
index 0000000..9d2f8b1
--- /dev/null
+++ b/win32/vs2015/PreBuild.bat
@@ -0,0 +1,9 @@
+set /p VERSION= < %~dp0..\..\VERSION
+
+:config.h
+echo> .\config.h #define TCC_VERSION "%VERSION%"
+echo>> .\config.h #ifdef TCC_TARGET_X86_64
+echo>> .\config.h #define CONFIG_TCC_LIBPATHS "{B}/lib/64;{B}/lib"
+echo>> .\config.h #else
+echo>> .\config.h #define CONFIG_TCC_LIBPATHS "{B}/lib/32;{B}/lib"
+echo>> .\config.h #endif