From a4d454e264f394502f4d63e5dcb824249814d6e0 Mon Sep 17 00:00:00 2001
From: Adeel <3840695+am11@users.noreply.github.com>
Date: Sat, 16 Oct 2021 17:17:42 +0300
Subject: [PATCH] Fix alpine build
---
.../IL2C.Core.Test.Common.csproj | 1 +
.../ILSupport.Standard.targets | 39 ++++++++-----------
2 files changed, 17 insertions(+), 23 deletions(-)
diff --git a/tests/IL2C.Core.Test.Common/IL2C.Core.Test.Common.csproj b/tests/IL2C.Core.Test.Common/IL2C.Core.Test.Common.csproj
index 2871efeb..ebbdb573 100644
--- a/tests/IL2C.Core.Test.Common/IL2C.Core.Test.Common.csproj
+++ b/tests/IL2C.Core.Test.Common/IL2C.Core.Test.Common.csproj
@@ -24,6 +24,7 @@
full
true
AnyCPU
+ false
diff --git a/tests/IL2C.Core.Test.Common/ILSupport.Standard.targets b/tests/IL2C.Core.Test.Common/ILSupport.Standard.targets
index 47101a9f..ecd97128 100644
--- a/tests/IL2C.Core.Test.Common/ILSupport.Standard.targets
+++ b/tests/IL2C.Core.Test.Common/ILSupport.Standard.targets
@@ -9,16 +9,9 @@
-->
- <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('windows'))">win
- <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('linux'))">linux
- <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('osx'))">osx
- <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('freebsd'))">freebsd
- <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('netbsd'))">netbsd
- <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('illumos'))">illumos
- <_OSPlatform Condition="$([MSBuild]::IsOSPlatform('solaris'))">solaris
- <_OSArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)
-
- $(_OSPlatform)-$(_OSArchitecture.ToLower())
+ <_runtime>$(NETCoreSdkPortableRuntimeIdentifier)
+ <_runtime Condition="'$(_runtime)' == ''">$(NETCoreSdkRuntimeIdentifier)
+ $(_runtime)
6.0.0-rc.2.21480.5
runtime.$(MicrosoftNetCoreIlasmPackageRuntimeId).microsoft.netcore.ilasm
@@ -78,7 +71,7 @@
- "$(ILDasmPath)" /linenum /utf8 /output="$(ILFile)" @(IntermediateAssembly->'"%(FullPath)"', ' ')
+ "$(ILDasmPath)" -linenum -utf8 -output="$(ILFile)" @(IntermediateAssembly->'"%(FullPath)"', ' ')
@@ -102,47 +95,47 @@
- "$(ILAsmPath)" /nologo /quite /output=@(IntermediateAssembly->'"%(FullPath)"', ' ')
+ "$(ILAsmPath)" -nologo -quite -output=@(IntermediateAssembly->'"%(FullPath)"', ' ')
$([System.IO.Path]::Combine('$(MSBuildProjectDirectory)','$(IntermediateOutputPath)','Merged.il'))
- $(ILAsm) /alignment=$(FileAlignment)
+ $(ILAsm) -alignment=$(FileAlignment)
- $(ILAsm) /base=$(BaseAddress)
+ $(ILAsm) -base=$(BaseAddress)
- $(ILAsm) /dll
+ $(ILAsm) -dll
- $(ILAsm) /debug=opt /pdbfmt=portable
+ $(ILAsm) -debug=opt -pdbfmt=portable
- $(ILAsm) /debug=impl /pdbfmt=portable
+ $(ILAsm) -debug=impl -pdbfmt=portable
- $(ILAsm) /debug /pdbfmt=portable
+ $(ILAsm) -debug -pdbfmt=portable
- $(ILAsm) /debug /pdbfmt=portable
+ $(ILAsm) -debug -pdbfmt=portable
- $(ILAsm) /optimize
+ $(ILAsm) -optimize
- $(ILAsm) /pe64 /itanium
+ $(ILAsm) -pe64 -itanium
- $(ILAsm) /key:"$(AssemblyOriginatorKeyFile)"
+ $(ILAsm) -key:"$(AssemblyOriginatorKeyFile)"