2009-03-08 Zoltan Varga <vargaz@gmail.com>
[mono-project.git] / msvc / runmdesc.bat
blobdb0179b8f2deb7764020198dc52f4b3fa543372e
1 @echo off
2 rem This runs genmdesc on the x86 files when called on Visual Studio
3 echo Running genmdesc
4 cd ..\mono\mini
5 set PATH=%PATH%;%MONO_DEPENDENCIES_PREFIX%\bin
6 if "%2" == "Win32" goto x86
7 if "%2" == "x64" goto x64
8 goto error
9 :x86
10 echo Platform detected is x86...
11 %1 cpu-x86.md cpu-x86.h x86_desc
12 goto end
13 :x64
14 echo Platform detected is x64...
15 %1 cpu-amd64.md cpu-amd64.h amd64_desc
16 goto end
17 :error
18 echo Error: unsupported platform
19 exit /b 100
20 :end
21 echo done