[clang] [clang][python] Don't add check-clang-python to check-all if cross-compiling (PR #111657)

Alex Bradbury via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 13 07:11:36 PDT 2024


================
@@ -47,6 +47,14 @@ if(${LLVM_NATIVE_ARCH} MATCHES "^(AArch64|Hexagon|Sparc|SystemZ)$")
   set(RUN_PYTHON_TESTS FALSE)
 endif()
 
+# Tests will fail if cross-compiling for a different target, as tests will try
+# to use the host Python3_EXECUTABLE and make FFI calls to functions in target
+# libraries.
+if(CMAKE_CROSS_COMPILING)
----------------
asb wrote:

Thank you both for the comments, I've added a FIXME now that notes the issue without indicating a particular solution has been chosen.

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


More information about the cfe-commits mailing list