https://github.com/TApplencourt updated 
https://github.com/llvm/llvm-project/pull/170201

>From 53ff62579c345b373fca0450cc3453061e1a8f4a Mon Sep 17 00:00:00 2001
From: tapplencourt <[email protected]>
Date: Mon, 1 Dec 2025 20:54:20 +0000
Subject: [PATCH 1/2] Add LIBCLANG_LIBRARY_PATH and LIBCLANG_LIBRARY_FILE

---
 clang/bindings/python/clang/cindex.py | 4 ++--
 clang/docs/ReleaseNotes.rst           | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/clang/bindings/python/clang/cindex.py 
b/clang/bindings/python/clang/cindex.py
index d352373e85c60..b728a8d8369ad 100644
--- a/clang/bindings/python/clang/cindex.py
+++ b/clang/bindings/python/clang/cindex.py
@@ -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
 
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index 9f8d781c93021..fb812a21f2f31 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -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|?
 ==============================

>From 8de9e2df1d7bb06ab9cb0dc3b516a3734c827037 Mon Sep 17 00:00:00 2001
From: Thomas Applencourt <[email protected]>
Date: Wed, 3 Dec 2025 11:27:31 -0600
Subject: [PATCH 2/2] Update clang/docs/ReleaseNotes.rst

Co-authored-by: Jannick Kremer <[email protected]>
---
 clang/docs/ReleaseNotes.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index fb812a21f2f31..226048a5c290e 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -170,9 +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.
+- Allow setting the path to the libclang library via environment variables: 
``LIBCLANG_LIBRARY_PATH``
+  to specifiy the path to the folder, or ``LIBCLANG_LIBRARY_FILE`` to specify 
the path to
+  the library file
 
 What's New in Clang |release|?
 ==============================

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to