Skip to content

Commit b1dd8ea

Browse files
Merge pull request #600 from tannergooding/main
Ensure that the import resolver checks for libclang-20
2 parents 913ab1f + 668c328 commit b1dd8ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<PackageValidationBaselineVersion>17.0.0</PackageValidationBaselineVersion>
4848
<Product>ClangSharp</Product>
4949
<RootNamespace>ClangSharp</RootNamespace>
50-
<VersionPrefix>20.1.2</VersionPrefix>
50+
<VersionPrefix>20.1.2.1</VersionPrefix>
5151
<VersionSuffix Condition="'$(EXCLUDE_SUFFIX_FROM_VERSION)' != 'true'">rc1</VersionSuffix>
5252
<VersionSuffix Condition="'$(GITHUB_EVENT_NAME)' == 'pull_request'">pr</VersionSuffix>
5353
</PropertyGroup>

sources/ClangSharp.Interop/clang.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ private static bool TryResolveClang(Assembly assembly, DllImportSearchPath? sear
4141
{
4242
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
4343
{
44-
return NativeLibrary.TryLoad("libclang.so.18", assembly, searchPath, out nativeLibrary)
45-
|| NativeLibrary.TryLoad("libclang-18", assembly, searchPath, out nativeLibrary)
44+
return NativeLibrary.TryLoad("libclang.so.20", assembly, searchPath, out nativeLibrary)
45+
|| NativeLibrary.TryLoad("libclang-20", assembly, searchPath, out nativeLibrary)
4646
|| NativeLibrary.TryLoad("libclang.so.1", assembly, searchPath, out nativeLibrary);
4747
}
4848

0 commit comments

Comments
 (0)