[VMR] Pass target architecture and OS on Windows (#19321)

We didn't pass an explicit architecture so it always used the host one, even for arm64/x86 builds.

Contributes to https://github.com/dotnet/source-build/issues/4292
This commit is contained in:
Alexander Köplinger 2024-04-05 14:52:42 +02:00 committed by GitHub
parent 144a405fd5
commit caadf5c99c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -238,7 +238,7 @@ jobs:
- ${{ if eq(parameters.targetOS, 'windows') }}:
- script: |
call $(sourcesPath)\build.cmd -ci -cleanWhileBuilding -prepareMachine ${{ parameters.extraProperties }}
call $(sourcesPath)\build.cmd -ci -cleanWhileBuilding -prepareMachine /p:TargetOS=${{ parameters.targetOS }} /p:TargetArchitecture=${{ parameters.targetArchitecture }} ${{ parameters.extraProperties }}
displayName: Build
- ${{ else }}: