File tree Expand file tree Collapse file tree 4 files changed +29
-8
lines changed
src/Sentry/Platforms/Native Expand file tree Collapse file tree 4 files changed +29
-8
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,20 @@ internal class FakeTransport : ITransport
5858 return " ./console-app/bin/Release/$framework /win-x64/publish/console-app.exe"
5959 }
6060 }
61- elseif ((ldd -- version 2>&1 ) -match ' musl' )
62- {
63- return " ./console-app/bin/Release/$framework /linux-musl-x64/publish/console-app"
64- }
6561 else
6662 {
67- return " ./console-app/bin/Release/$framework /linux-x64/publish/console-app"
63+ if (" Arm64" .Equals([System.Runtime.InteropServices.RuntimeInformation ]::OSArchitecture.ToString()))
64+ {
65+ return " ./console-app/bin/Release/$framework /linux-arm64/publish/console-app"
66+ }
67+ elseif ((ldd -- version 2>&1 ) -match ' musl' )
68+ {
69+ return " ./console-app/bin/Release/$framework /linux-musl-x64/publish/console-app"
70+ }
71+ else
72+ {
73+ return " ./console-app/bin/Release/$framework /linux-x64/publish/console-app"
74+ }
6875 }
6976 }
7077
Original file line number Diff line number Diff line change 3737 }
3838 elseif ($IsLinux )
3939 {
40- if ((ldd -- version 2>&1 ) -match ' musl' )
40+ if (" Arm64" .Equals([System.Runtime.InteropServices.RuntimeInformation ]::OSArchitecture.ToString()))
41+ {
42+ $outDir += ' /linux-arm64'
43+ }
44+ elseif ((ldd -- version 2>&1 ) -match ' musl' )
4145 {
4246 $outDir += ' /linux-musl-x64'
4347 }
Original file line number Diff line number Diff line change 1515 <SentryNativeOutputDirectory-linux-x64 >$(SentryNativeOutputDirectory)$(NativeLibRelativePath-linux-x64)\</SentryNativeOutputDirectory-linux-x64 >
1616 <NativeLibRelativePath-linux-musl-x64 >linux-musl-x64</NativeLibRelativePath-linux-musl-x64 >
1717 <SentryNativeOutputDirectory-linux-musl-x64 >$(SentryNativeOutputDirectory)$(NativeLibRelativePath-linux-musl-x64)\</SentryNativeOutputDirectory-linux-musl-x64 >
18+ <NativeLibRelativePath-linux-arm64 >linux-arm64</NativeLibRelativePath-linux-arm64 >
19+ <SentryNativeOutputDirectory-linux-arm64 >$(SentryNativeOutputDirectory)$(NativeLibRelativePath-linux-arm64)\</SentryNativeOutputDirectory-linux-arm64 >
1820 <NativeLibRelativePath-osx >osx</NativeLibRelativePath-osx >
1921 <SentryNativeOutputDirectory-osx >$(SentryNativeOutputDirectory)$(NativeLibRelativePath-osx)\</SentryNativeOutputDirectory-osx >
2022 <SentryNativeBuildOutputs Condition =" '$(RuntimeIdentifier)' == 'win-x64'" >$(SentryNativeOutputDirectory-win-x64)lib$(SentryNativeLibraryName).lib</SentryNativeBuildOutputs >
2123 <SentryNativeBuildOutputs Condition =" '$(RuntimeIdentifier)' == 'win-arm64'" >$(SentryNativeOutputDirectory-win-arm64)lib$(SentryNativeLibraryName).lib</SentryNativeBuildOutputs >
2224 <SentryNativeBuildOutputs Condition =" '$(RuntimeIdentifier)' == 'linux-x64'" >$(SentryNativeOutputDirectory-linux-x64)lib$(SentryNativeLibraryName).a</SentryNativeBuildOutputs >
2325 <SentryNativeBuildOutputs Condition =" '$(RuntimeIdentifier)' == 'linux-musl-x64'" >$(SentryNativeOutputDirectory-linux-musl-x64)lib$(SentryNativeLibraryName).a</SentryNativeBuildOutputs >
26+ <SentryNativeBuildOutputs Condition =" '$(RuntimeIdentifier)' == 'linux-arm64'" >$(SentryNativeOutputDirectory-linux-arm64)lib$(SentryNativeLibraryName).a</SentryNativeBuildOutputs >
2427 <SentryNativeBuildOutputs Condition =" $([MSBuild]::IsOsPlatform('OSX'))" >$(SentryNativeOutputDirectory-osx)lib$(SentryNativeLibraryName).a</SentryNativeBuildOutputs >
2528 </PropertyGroup >
2629
5962 </None >
6063 </ItemGroup >
6164
65+ <ItemGroup Condition =" '$(CI_PUBLISHING_BUILD)' == 'true' or '$(RuntimeIdentifier)' == 'linux-arm64'" >
66+ <None Include =" $(SentryNativeOutputDirectory-linux-arm64)lib$(SentryNativeLibraryName).a" >
67+ <Pack >true</Pack >
68+ <PackagePath >\sentry-native\$(NativeLibRelativePath-linux-arm64)</PackagePath >
69+ </None >
70+ </ItemGroup >
71+
6272 <ItemGroup Condition =" '$(CI_PUBLISHING_BUILD)' == 'true' or $([MSBuild]::IsOsPlatform('OSX'))" >
6373 <None Include =" $(SentryNativeOutputDirectory-osx)lib$(SentryNativeLibraryName).a" >
6474 <Pack >true</Pack >
Original file line number Diff line number Diff line change 3333 <NativeLibrary Include =" Gdi32.lib" />
3434 </ItemGroup >
3535
36- <ItemGroup Condition =" '$(FrameworkSupportsNative)' == 'true' and '$(RuntimeIdentifier)' == 'linux-x64'" >
36+ <ItemGroup Condition =" '$(FrameworkSupportsNative)' == 'true' and ( '$(RuntimeIdentifier)' == 'linux-x64' or '$(RuntimeIdentifier)' == 'linux-arm64') " >
3737 <DirectPInvoke Include =" sentry-native" />
38- <NativeLibrary Include =" $(MSBuildThisFileDirectory)..\sentry-native\linux-x64 \libsentry-native.a" />
38+ <NativeLibrary Include =" $(MSBuildThisFileDirectory)..\sentry-native\$(RuntimeIdentifier) \libsentry-native.a" />
3939 <!-- See: https://github.com/dotnet/runtime/issues/97414 -->
4040 <NativeSystemLibrary Include =" curl" />
4141 </ItemGroup >
You can’t perform that action at this time.
0 commit comments