[bcl] Update BCL Linked Size
[mono-project.git] / msvc / run-msbuild.sh
blobf411f09bcf6638e340d0338945a03a60ba7d9946
1 #!/bin/bash
3 # Arguments:
4 #-------------------------------------------------------
5 # $1 Visual Studio target, build|clean, default build
6 # $2 Host CPU architecture, x86_64|i686, default x86_64
7 #-------------------------------------------------------
9 VS_TARGET="build"
10 VS_PLATFORM="x64"
12 if [[ $1 = "clean" ]]; then
13 VS_TARGET="clean"
16 if [[ $2 = "i686" ]]; then
17 VS_PLATFORM="Win32"
20 VS_BUILD_ARGS="run-msbuild.bat"
21 VS_BUILD_ARGS+=" /p:Configuration=Release"
22 VS_BUILD_ARGS+=" /p:Platform=$VS_PLATFORM"
23 VS_BUILD_ARGS+=" /p:MONO_TARGET_GC=sgen"
24 VS_BUILD_ARGS+=" /t:Build"
26 if [[ -z "$ORIGINAL_PATH" ]]; then
27 echo "Warning, run-msbuild.sh executed without ORIGINAL_PATH environment variable set. \
28 Windows environment can not be properly restored before running command."
31 export PATH=$ORIGINAL_PATH
32 $WINDIR/System32/cmd.exe /c "$VS_BUILD_ARGS"