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
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
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits