From 668c3288132d8f3908c0875240a867ff6eefca2d Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Fri, 23 May 2025 19:15:26 -0700 Subject: [PATCH] Ensure that the import resolver checks for libclang-20 --- Directory.Build.props | 2 +- sources/ClangSharp.Interop/clang.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 4a822fa1..2a8cf672 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -47,7 +47,7 @@ 17.0.0 ClangSharp ClangSharp - 20.1.2 + 20.1.2.1 rc1 pr diff --git a/sources/ClangSharp.Interop/clang.cs b/sources/ClangSharp.Interop/clang.cs index b6546231..037ab5b1 100644 --- a/sources/ClangSharp.Interop/clang.cs +++ b/sources/ClangSharp.Interop/clang.cs @@ -41,8 +41,8 @@ private static bool TryResolveClang(Assembly assembly, DllImportSearchPath? sear { if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { - return NativeLibrary.TryLoad("libclang.so.18", assembly, searchPath, out nativeLibrary) - || NativeLibrary.TryLoad("libclang-18", assembly, searchPath, out nativeLibrary) + return NativeLibrary.TryLoad("libclang.so.20", assembly, searchPath, out nativeLibrary) + || NativeLibrary.TryLoad("libclang-20", assembly, searchPath, out nativeLibrary) || NativeLibrary.TryLoad("libclang.so.1", assembly, searchPath, out nativeLibrary); }