Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / msvc / runmdesc.bat
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.h x86_desc cpu-x86.md
12 goto end
13 :x64
14 echo Platform detected is x64...
15 %1 cpu-amd64.h amd64_desc cpu-amd64.md
16 goto end
17 :error
18 echo Error: unsupported platform
19 exit /b 100
20 :end
21 echo done
22