Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clang/bindings/python/clang/cindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -4383,8 +4383,8 @@ def register(item: LibFunc) -> None:


class Config:
library_path = None
library_file: str | None = None
library_path: str | None = os.environ.get("LIBCLANG_LIBRARY_PATH")
library_file: str | None = os.environ.get("LIBCLANG_LIBRARY_FILE")
compatibility_check = True
loaded = False

Expand Down
3 changes: 3 additions & 0 deletions clang/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ Clang Python Bindings Potentially Breaking Changes
ElaboratedTypes. The value becomes unused, and all the existing users should
expect the former underlying type to be reported instead.
- Remove ``AccessSpecifier.NONE`` kind. No libclang interfaces ever returned this kind.
- Added the environment variables ``LIBCLANG_LIBRARY_PATH`` and ``LIBCLANG_LIBRARY_FILE``,
which allow users to specify the directory path and the exact library file that
should be used to locate libclang.

What's New in Clang |release|?
==============================
Expand Down