File tree 2 files changed +10
-3
lines changed
src/Sentry/Platforms/Native/buildTransitive
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 29
29
}
30
30
elseif ($IsLinux )
31
31
{
32
- $outDir += ' /linux-x64'
32
+ if ((ldd -- version 2>&1 ) -match ' musl' )
33
+ {
34
+ $outDir += ' /linux-musl-x64'
35
+ }
36
+ else
37
+ {
38
+ $outDir += ' /linux-x64'
39
+ }
33
40
}
34
41
else
35
42
{
Original file line number Diff line number Diff line change 33
33
<NativeLibrary Include =" Gdi32.lib" />
34
34
</ItemGroup >
35
35
36
- <ItemGroup Condition =" '$(FrameworkSupportsNative)' == 'true' and '$(RuntimeIdentifier)' == 'linux-x64'" >
36
+ <ItemGroup Condition =" '$(FrameworkSupportsNative)' == 'true' and ( '$(RuntimeIdentifier)' == 'linux-x64' or '$(RuntimeIdentifier)' == 'linux-musl-x64') " >
37
37
<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" />
39
39
<!-- See: https://github.com/dotnet/runtime/issues/97414 -->
40
40
<NativeSystemLibrary Include =" curl" />
41
41
</ItemGroup >
You can’t perform that action at this time.
0 commit comments