File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
src/Sentry/Platforms/Native/buildTransitive Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 2929 }
3030 elseif ($IsLinux )
3131 {
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+ }
3340 }
3441 else
3542 {
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-musl-x64') " >
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