Skip to content

Commit 9d33562

Browse files
authored
[VMR] Pass target architecture on Windows
We didn't pass an explicit architecture so it always used the host one, even for arm64/x86 builds. Contributes to dotnet/source-build#4292
1 parent 144a405 commit 9d33562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/pipelines/templates/jobs/vmr-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ jobs:
238238
239239
- ${{ if eq(parameters.targetOS, 'windows') }}:
240240
- script: |
241-
call $(sourcesPath)\build.cmd -ci -cleanWhileBuilding -prepareMachine ${{ parameters.extraProperties }}
241+
call $(sourcesPath)\build.cmd -ci -cleanWhileBuilding -prepareMachine /p:TargetArchitecture=${{ parameters.targetArchitecture }} ${{ parameters.extraProperties }}
242242
displayName: Build
243243
244244
- ${{ else }}:

0 commit comments

Comments
 (0)