[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:
parent
144a405fd5
commit
caadf5c99c
1 changed files with 1 additions and 1 deletions
|
@ -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 }}:
|
||||
|
|
Loading…
Reference in a new issue