| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -347,17 +347,11 @@ static string LocateSo(FileInfo interpreterPath) { | |||
| 347 | 347 | string[] paths = stdout | |
| 348 | 348 | .Split(new[] {Environment.NewLine}, StringSplitOptions.RemoveEmptyEntries) | |
| 349 | 349 | .ToArray(); | |
| 350 | - if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) | ||
| 351 | - if (paths.Length == 1) { | ||
| 352 | - string so = Path.ChangeExtension(paths[0], DynamicLibraryExtension); | ||
| 353 | - return File.Exists(so) ? so : paths[0]; | ||
| 354 | - } | ||
| 355 | - if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { | ||
| 356 | - return paths.Select(libPath => Path.ChangeExtension(libPath, ".dylib")) | ||
| 357 | - .FirstOrDefault(File.Exists); | ||
| 358 | - } | ||
| 359 | 350 | ||
| 360 | - return null; | ||
| 351 | + return paths.Select(libPath => Path.ChangeExtension(libPath, DynamicLibraryExtension)) | ||
| 352 | + .Concat(paths) | ||
| 353 | + .Where(libPath => Path.GetExtension(libPath) != ".a") | ||
| 354 | + .FirstOrDefault(File.Exists); | ||
| 361 | 355 | } | |
| 362 | 356 | ||
| 363 | 357 | static DirectoryInfo? TryGuessUnixHome(FileInfo interpreterPath, Version version, string dllPath) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments