Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit a307f0d

Browse files
omajiddagood
authored andcommitted
Revert "Enable hosted builds on arm64 (#7696)" (#7806)
This reverts commit 4b82b1e. The changes break VS and may even change the default on Windows to x86 instead of x64.
1 parent 47dfe9e commit a307f0d

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

Directory.Build.props

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@
9494
</PropertyGroup>
9595

9696
<PropertyGroup>
97-
<HostArch>$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant())</HostArch>
98-
<TargetArchitecture Condition="'$(TargetArchitecture)' == ''">$(HostArch)</TargetArchitecture>
97+
<TargetArchitecture Condition="'$(TargetArchitecture)' == ''">x64</TargetArchitecture>
9998
<Platform Condition="'$(Platform)'==''">$(TargetArchitecture)</Platform>
10099
</PropertyGroup>
101100
<!--
@@ -399,4 +398,4 @@
399398
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
400399
</PropertyGroup>
401400

402-
</Project>
401+
</Project>

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
<MicrosoftTargetingPackPrivateWinRTPackageVersion>1.0.5</MicrosoftTargetingPackPrivateWinRTPackageVersion>
8787
<MicrosoftDiaSymReaderNativePackageVersion>1.7.0</MicrosoftDiaSymReaderNativePackageVersion>
8888
<!-- Infrastructure and test-only. -->
89-
<MicrosoftSourceLinkVersion>1.0.0-beta2-19367-01</MicrosoftSourceLinkVersion>
89+
<MicrosoftSourceLinkVersion>1.0.0-beta2-18618-05</MicrosoftSourceLinkVersion>
9090
</PropertyGroup>
9191
<!--Package names-->
9292
<PropertyGroup>

src/pkg/packaging-tools/framework.dependency.targets

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,7 @@
217217
<PropertyGroup>
218218
<_crossDir Condition="'$(TargetArchitecture)' == 'arm' AND '$(OS)' == 'Windows_NT'">/x86_arm</_crossDir>
219219
<_crossDir Condition="'$(TargetArchitecture)' == 'arm' AND '$(OS)' != 'Windows_NT'">/x64_arm</_crossDir>
220-
<!-- Only use x64_arm64 when cross compiling. Use normal executible when compiling on arm64 itself. -->
221-
<_crossDir Condition="'$(TargetArchitecture)' == 'arm64' AND '$(HostArch)' != 'arm64'">/x64_arm64</_crossDir>
220+
<_crossDir Condition="'$(TargetArchitecture)' == 'arm64'">/x64_arm64</_crossDir>
222221
</PropertyGroup>
223222

224223
<ItemGroup>
@@ -236,6 +235,7 @@
236235
<!-- Find crossgen tool assets in package cache to allow ExcludeAssets=All. -->
237236
<_runtimeCLR Include="$(_runtimePackageDir)**/$(LibraryFilePrefix)coreclr$(LibraryFileExtension)" />
238237
<_runtimeCoreLib Include="$(_runtimePackageDir)**/native/System.Private.CoreLib.dll" />
238+
<_runtimeJIT Include="$(_jitPackageDir)**/$(LibraryFilePrefix)clrjit$(LibraryFileExtension)" />
239239
<_fxSystemRuntime Include="$(_corefxPackageDir)**/System.Runtime.dll" />
240240
<_windowsWinMD Include="$(_winmdPackageDir)**/Windows.winmd" />
241241
<_diaSymReaderAssembly Include="$(_diaSymReaderPackageDir)**\Microsoft.DiaSymReader.Native.*.dll" />
@@ -250,8 +250,8 @@
250250
<_coreLibDirectory>%(_runtimeCoreLib.RootDir)%(_runtimeCoreLib.Directory)</_coreLibDirectory>
251251
</PropertyGroup>
252252

253-
<PropertyGroup>
254-
<_jitPath Condition="'$(_crossDir)' == ''">$(_jitPackageDir)runtimes/$(PackageRID)/native/$(LibraryFilePrefix)clrjit$(LibraryFileExtension)</_jitPath>
253+
<PropertyGroup Condition="'@(_runtimeJIT)' != ''">
254+
<_jitPath>%(_runtimeJIT.FullPath)</_jitPath>
255255
<_jitPath Condition="'$(_crossDir)' != ''">$(_jitPackageDir)runtimes$(_crossDir)/native/$(LibraryFilePrefix)clrjit$(LibraryFileExtension)</_jitPath>
256256
</PropertyGroup>
257257

0 commit comments

Comments
 (0)