From: Pat Gavlin Date: Thu, 1 Sep 2016 13:09:54 +0000 (-0700) Subject: Pass /p:Platform to msbuild in runtest.cmd. X-Git-Tag: submit/tizen/20210909.063632~11030^2~9504^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8cc29359f163b83633360c878b10ffadd2a2f7a5;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Pass /p:Platform to msbuild in runtest.cmd. Otherwise, the tests will use the ambient setting of the Platform variable, which might not match the architecture specified on the command line. This results in the wrong build of the tests running against the correct runtime, which e.g. causes failures in tests with native components. Commit migrated from https://github.com/dotnet/coreclr/commit/d33c89d5af26e7131a069e9227491a1ad7bcae50 --- diff --git a/src/coreclr/tests/runtest.cmd b/src/coreclr/tests/runtest.cmd index fca99f3..5620789 100644 --- a/src/coreclr/tests/runtest.cmd +++ b/src/coreclr/tests/runtest.cmd @@ -134,7 +134,7 @@ if not defined VSINSTALLDIR ( :: The issue is that we extend the build with our own targets which :: means that that rebuilding cannot successfully delete the task :: assembly. -set __msbuildCommonArgs=/nologo /nodeReuse:false %__msbuildExtraArgs% +set __msbuildCommonArgs=/nologo /nodeReuse:false %__msbuildExtraArgs% /p:Platform=%__MSBuildBuildArch% if not defined __Sequential ( set __msbuildCommonArgs=%__msbuildCommonArgs% /maxcpucount