From 41c635a484ad487d0d0a6bb7a258445ece60218e Mon Sep 17 00:00:00 2001 From: Szczepan Date: Wed, 1 Feb 2023 22:32:42 +0000 Subject: [PATCH 1/2] Fix build for FreeBSD arm64 w/NativeAOT --- .../BuildIntegration/Microsoft.NETCore.Native.Unix.targets | 1 + src/coreclr/tools/aot/ILCompiler/ILCompiler.props | 1 + src/coreclr/tools/aot/ILCompiler/repro/repro.csproj | 2 +- .../projects/Microsoft.DotNet.ILCompiler/ILCompilerRIDs.props | 3 ++- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets index eb9f33319f02a..9c14223c1f789 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets @@ -149,6 +149,7 @@ The .NET Foundation licenses this file to you under the MIT license. + diff --git a/src/coreclr/tools/aot/ILCompiler/ILCompiler.props b/src/coreclr/tools/aot/ILCompiler/ILCompiler.props index 347ead37e8ba2..da2094830896a 100644 --- a/src/coreclr/tools/aot/ILCompiler/ILCompiler.props +++ b/src/coreclr/tools/aot/ILCompiler/ILCompiler.props @@ -46,6 +46,7 @@ $(runtimeosx110arm64MicrosoftNETCoreRuntimeObjWriterVersion) $(runtimeosx1012x64MicrosoftNETCoreRuntimeObjWriterVersion) $(runtimefreebsdx64MicrosoftNETCoreRuntimeObjWriterVersion) + $(runtimefreebsdarm64MicrosoftNETCoreRuntimeObjWriterVersion) true diff --git a/src/coreclr/tools/aot/ILCompiler/repro/repro.csproj b/src/coreclr/tools/aot/ILCompiler/repro/repro.csproj index 48b2709adca52..9c3ca66fa1d8f 100644 --- a/src/coreclr/tools/aot/ILCompiler/repro/repro.csproj +++ b/src/coreclr/tools/aot/ILCompiler/repro/repro.csproj @@ -6,7 +6,7 @@ AnyCPU false false - linux-x64;win-x64;osx-x64;freebsd-x64 + linux-x64;win-x64;osx-x64;freebsd-x64;freebsd-arm64 Debug;Release;Checked true false diff --git a/src/installer/pkg/projects/Microsoft.DotNet.ILCompiler/ILCompilerRIDs.props b/src/installer/pkg/projects/Microsoft.DotNet.ILCompiler/ILCompilerRIDs.props index 8cd82c085c1a6..bab4b4c356b94 100644 --- a/src/installer/pkg/projects/Microsoft.DotNet.ILCompiler/ILCompilerRIDs.props +++ b/src/installer/pkg/projects/Microsoft.DotNet.ILCompiler/ILCompilerRIDs.props @@ -9,6 +9,7 @@ - + + From 26e201a6cd02fe525c359f13b6a9bbdabd1bacd2 Mon Sep 17 00:00:00 2001 From: Szczepan Date: Thu, 2 Feb 2023 11:20:11 +0000 Subject: [PATCH 2/2] Removed linker hack (adding /p:UseLlvmLinker=true fix the build) --- .../BuildIntegration/Microsoft.NETCore.Native.Unix.targets | 1 - 1 file changed, 1 deletion(-) diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets index 9c14223c1f789..eb9f33319f02a 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets @@ -149,7 +149,6 @@ The .NET Foundation licenses this file to you under the MIT license. -