Skip to content

Commit d197ee2

Browse files
committed
build: adapt Sentry.Native.targets
1 parent 068f93c commit d197ee2

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/Sentry/Platforms/Native/buildTransitive/Sentry.Native.targets

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,10 @@
5151
<NativeLibrary Include="Gdi32.lib" />
5252
</ItemGroup>
5353

54-
<ItemGroup Condition="'$(FrameworkSupportsNative)' == 'true' and ('$(RuntimeIdentifier)' == 'linux-x64' or '$(RuntimeIdentifier)' == 'linux-arm64')">
54+
<ItemGroup Condition="'$(FrameworkSupportsNative)' == 'true' and ('$(RuntimeIdentifier)' == 'linux-x64' or '$(RuntimeIdentifier)' == 'linux-arm64' or
55+
'$(RuntimeIdentifier)' == 'linux-musl-x64' or '$(RuntimeIdentifier)' == 'linux-musl-arm64')">
5556
<DirectPInvoke Include="sentry-native" />
56-
<NativeLibrary Include="$(MSBuildThisFileDirectory)..\sentry-native\$(RuntimeIdentifier)\libsentry-native.a" />
57-
</ItemGroup>
58-
59-
<ItemGroup Condition="'$(FrameworkSupportsNative)' == 'true' and ('$(RuntimeIdentifier)' == 'linux-musl-x64' or '$(RuntimeIdentifier)' == 'linux-musl-arm64')">
60-
<DirectPInvoke Include="sentry-native" />
61-
<!-- When musl is detected, static sentry-native links to static libunwind, which depends on liblzma -->
57+
<!-- Static sentry-native links to static libunwind, which depends on liblzma -->
6258
<LinkerArg Include="-Wl,-Bstatic -Wl,--whole-archive -lunwind -Wl,--no-whole-archive -llzma -Wl,-Bdynamic" />
6359
<NativeLibrary Include="$(MSBuildThisFileDirectory)..\sentry-native\$(RuntimeIdentifier)\libsentry-native.a" />
6460
</ItemGroup>

0 commit comments

Comments
 (0)