[PATCH] D141248: [Clang] [Python] Fix tests when default config file contains -include
Sam James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 22 19:36:05 PST 2023
thesamesam updated this revision to Diff 491220.
thesamesam added a comment.
Switch to setting CLANG_NO_DEFAULT_CONFIG via CMake instead.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141248/new/
https://reviews.llvm.org/D141248
Files:
clang/bindings/python/tests/CMakeLists.txt
Index: clang/bindings/python/tests/CMakeLists.txt
===================================================================
--- clang/bindings/python/tests/CMakeLists.txt
+++ clang/bindings/python/tests/CMakeLists.txt
@@ -1,7 +1,10 @@
# Test target to run Python test suite from main build.
+# Avoid configurations including '-include' from interfering with
+# our tests by setting CLANG_NO_DEFAULT_CONFIG.
add_custom_target(check-clang-python
COMMAND ${CMAKE_COMMAND} -E env
+ CLANG_NO_DEFAULT_CONFIG=1
CLANG_LIBRARY_PATH=$<TARGET_FILE_DIR:libclang>
"${Python3_EXECUTABLE}" -m unittest discover
DEPENDS libclang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141248.491220.patch
Type: text/x-patch
Size: 658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230123/7da86c10/attachment.bin>
More information about the cfe-commits
mailing list