summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPat Gavlin <pagavlin@microsoft.com>2016-09-01 06:09:54 -0700
committerPat Gavlin <pagavlin@microsoft.com>2016-09-01 06:09:54 -0700
commitd33c89d5af26e7131a069e9227491a1ad7bcae50 (patch)
tree376ef31f72c96ce7c7cf2966856b3c7b8b75bca6 /tests
parent68afd5c45f9d8175fcd3a8cb3a96097b7a546b80 (diff)
downloadcoreclr-d33c89d5af26e7131a069e9227491a1ad7bcae50.tar.gz
coreclr-d33c89d5af26e7131a069e9227491a1ad7bcae50.tar.bz2
coreclr-d33c89d5af26e7131a069e9227491a1ad7bcae50.zip
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/runtest.cmd2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runtest.cmd b/tests/runtest.cmd
index fca99f3ce3..5620789575 100644
--- a/tests/runtest.cmd
+++ b/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