diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.SingleEntry.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.SingleEntry.targets
index 4da300862aed75..07ab9cd9d43a1e 100644
--- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.SingleEntry.targets
+++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.SingleEntry.targets
@@ -17,10 +17,12 @@
runtime.$(OSIdentifier)-$(TargetArchitecture).Microsoft.DotNet.ILCompiler
-
+
+ $([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture.ToString().ToLowerInvariant)
+
$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant)
runtime.$(OSIdentifier)-$(IlcHostArch).Microsoft.DotNet.ILCompiler
-
+
true
diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets
index 166e393818434e..29d19fea6c8877 100644
--- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets
+++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets
@@ -29,7 +29,7 @@ The .NET Foundation licenses this file to you under the MIT license.
libRuntime.ServerGC
- $(RuntimeIdentifier)
+ $(RuntimeIdentifier)
x86_64