Fix build error in r2r_checker on 64 bit (#358)
author조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Tue, 28 Dec 2021 03:14:31 +0000 (12:14 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 28 Dec 2021 03:14:31 +0000 (12:14 +0900)
BIT64(for coreclr 3.1.3) and HOST_64BIT(for .NET6) should be defined for ULONG_PTR on 64 bit.

packaging/dotnet-launcher.spec

index b4067b6..4f5d8eb 100644 (file)
@@ -109,6 +109,11 @@ export CXXFLAGS=$(echo $CXXFLAGS | sed -e 's/--target=i686/--target=i586/')
 %endif
 %endif
 
+%ifarch x86_64 aarch64
+export CFLAGS+=" -DBIT64 -DHOST_64BIT "
+export CXXFLAGS+=" -DBIT64 -DHOST_64BIT "
+%endif
+
 dotnet msbuild Managed /t:clean
 dotnet msbuild Managed /t:restore /p:RestoreSources=/nuget
 dotnet msbuild Managed /p:Configuration=Release