X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=msvc%2Frunmdesc.bat;h=8d089341aecf94929452f9075b2d349b4576f5ad;hb=HEAD;hp=de31cced082b58a91d42c6491c7c96cfb487f95f;hpb=e66dac6f3f265c261876bc011157c6392ae5d8a1;p=mono.git diff --git a/msvc/runmdesc.bat b/msvc/runmdesc.bat index de31cced082..8d089341aec 100755 --- a/msvc/runmdesc.bat +++ b/msvc/runmdesc.bat @@ -1,8 +1,22 @@ @echo off rem This runs genmdesc on the x86 files when called on Visual Studio -echo Running genmdesc on the x86 files... +echo Running genmdesc cd ..\mono\mini -set PATH=%PATH%;..\..\VSDependancies\lib -%1 cpu-x86.md cpu-x86.h x86_desc +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 cpu-x86.h x86_desc cpu-x86.md +goto end +:x64 +echo Platform detected is x64... +%1 cpu-amd64.h amd64_desc cpu-amd64.md +goto end +:error +echo Error: unsupported platform +exit /b 100 +:end echo done