Align libgc vcxproj with makefile.
[mono.git] / msvc / runburg.bat
index 7e36428b99af14da1335c9e3f6b274fbe8534312..d7abbcd0642d323bf1ec8cfd6544afdd31bc65ab 100755 (executable)
@@ -1,8 +1,23 @@
 @echo off
 rem This runs Monoburg on the various x86 files when called on Visual Studio
-echo Running Monoburg on the x86 inssel.brg files...
+echo Running Monoburg on the inssel.brg files...
 cd ..\mono\mini
-set PATH=%PATH%;..\..\VSDependancies\lib
+set PATH=%PATH%;%MONO_DEPENDENCIES_PREFIX%\bin
+
+if "%2" == "Win32" goto x86
+if "%2" == "x64" goto x64
+goto error
+:x86
+echo Platform detected is x86...
 %1 -c 1 -p -e inssel.brg inssel-float.brg inssel-long32.brg inssel-x86.brg -d inssel.h -s inssel.c
+goto end
+:x64
+echo Platform detected is x64...
+%1 -c 1 -p -e inssel.brg inssel-float.brg inssel-long.brg inssel-amd64.brg -d inssel.h -s inssel.c
+goto end
+:error
+echo Error: unsupported platform
+exit /b 100
+:end
 echo done