From 04d0571b9cae92a51ff3a3e1eeea43bb30277fde Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Mon, 15 Apr 2024 14:38:08 -0700 Subject: [PATCH] Build CoreLib as AnyCPU Reduce amount of architecture specific code. Minor cleanup motivated by #101038. --- .../System.Private.CoreLib.csproj | 8 +------- src/coreclr/nativeaot/Directory.Build.props | 6 +----- .../System.Private.CoreLib.csproj | 11 +---------- 3 files changed, 3 insertions(+), 22 deletions(-) diff --git a/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj index 9ef1024c449da..fdd395fe520a0 100644 --- a/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/coreclr/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -39,6 +39,7 @@ $(TargetArchitecture) arm + AnyCPU true false @@ -59,28 +60,21 @@ - x64 - false $(DefineConstants);TARGET_AMD64 - x86 $(DefineConstants);TARGET_X86 - arm $(DefineConstants);TARGET_ARM - AnyCPU $(DefineConstants);TARGET_ARM64 - AnyCPU $(DefineConstants);TARGET_LOONGARCH64 - AnyCPU $(DefineConstants);TARGET_RISCV64 diff --git a/src/coreclr/nativeaot/Directory.Build.props b/src/coreclr/nativeaot/Directory.Build.props index 42e6f968e0e1e..d3277aa58ece7 100644 --- a/src/coreclr/nativeaot/Directory.Build.props +++ b/src/coreclr/nativeaot/Directory.Build.props @@ -21,6 +21,7 @@ $(TargetArchitecture) arm + AnyCPU true false @@ -78,20 +79,15 @@ - x64 - false TARGET_64BIT;TARGET_AMD64;$(DefineConstants) - x86 TARGET_32BIT;TARGET_X86;$(DefineConstants) - arm TARGET_32BIT;TARGET_ARM;$(DefineConstants) - AnyCPU TARGET_64BIT;TARGET_ARM64;$(DefineConstants) diff --git a/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj b/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj index 95f7f110cda50..905dc83eb08de 100644 --- a/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj +++ b/src/mono/System.Private.CoreLib/System.Private.CoreLib.csproj @@ -26,6 +26,7 @@ + AnyCPU true false @@ -48,40 +49,30 @@ - x64 - false $(DefineConstants);TARGET_AMD64 - x86 $(DefineConstants);TARGET_X86 - arm $(DefineConstants);TARGET_ARMV6 - arm $(DefineConstants);TARGET_ARM - AnyCPU $(DefineConstants);TARGET_ARM64 - AnyCPU $(DefineConstants);TARGET_RISCV64 - AnyCPU $(DefineConstants);TARGET_S390X - AnyCPU $(DefineConstants);TARGET_WASM - AnyCPU $(DefineConstants);TARGET_POWERPC64