Skip to content

Commit 78cc6f4

Browse files
Fixing the resolved libclang version
1 parent 617c1ec commit 78cc6f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/ClangSharp.Interop/Extensions/clang.ResolveLibrary.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ private static IntPtr OnDllImport(string libraryName, Assembly assembly, DllImpo
2929

3030
private static bool TryResolveClang(Assembly assembly, DllImportSearchPath? searchPath, out IntPtr nativeLibrary)
3131
{
32-
return (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && NativeLibrary.TryLoad("libclang.so.13", assembly, searchPath, out nativeLibrary))
33-
|| (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && NativeLibrary.TryLoad("libclang-13", assembly, searchPath, out nativeLibrary))
32+
return (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && NativeLibrary.TryLoad("libclang.so.15", assembly, searchPath, out nativeLibrary))
33+
|| (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && NativeLibrary.TryLoad("libclang-15", assembly, searchPath, out nativeLibrary))
3434
|| (RuntimeInformation.IsOSPlatform(OSPlatform.Linux) && NativeLibrary.TryLoad("libclang.so.1", assembly, searchPath, out nativeLibrary))
3535
|| NativeLibrary.TryLoad("libclang", assembly, searchPath, out nativeLibrary);
3636
}

0 commit comments

Comments
 (0)