[clang] [clang][python] Add CLANG_DISABLE_RUN_PYTHON_TESTS CMake option to disable clang python bindings tests (PR #111367)

Alex Bradbury via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 9 02:05:06 PDT 2024


asb wrote:

> Sorry, I'm asking for the use case for the particular CMake knob you're adding. If there are more platforms that those tests are not working on, we should simply expand the pre-existing list

Ah sorry for misunderstanding you - good question. In my case it's a cross setup. The host Python3_EXECUTABLE will never successfully run these tests, even if a target python3 (run via qemu-user and binfmt_misc) could. Though now I write this, I'm thinking it would make more sense to set RUN_PYTHON_TESTS to FALSE if CMAKE_CROSSCOMPILING is set. What do you think?

https://github.com/llvm/llvm-project/pull/111367


More information about the cfe-commits mailing list