Skip to content

Commit 21cc8c3

Browse files
authored
Merge pull request SciSharp#1347 from m0nsky/fix/musl-rid-detection
Fix musl detection using RID instead of distro name
2 parents 6166e79 + cfa2c33 commit 21cc8c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

LLama/Native/Load/NativeLibraryUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ public static void GetPlatformPathParts(OSPlatform platform, out string os, out
236236
libPrefix = "lib";
237237
return;
238238
}
239-
if(RuntimeInformation.RuntimeIdentifier.ToLower().StartsWith("alpine"))
239+
if(RuntimeInformation.RuntimeIdentifier.ToLower().Contains("musl"))
240240
{
241-
// alpine linux distro
241+
// musl-based linux distro (e.g. Alpine)
242242
os = "linux-musl-x64";
243243
fileExtension = ".so";
244244
libPrefix = "lib";

0 commit comments

Comments
 (0)