Loading
onnxruntime: fix cross-compilation
Three things break the cross build: - doCheck was true, so CMake tried to build tests and fetch GTest. FETCHCONTENT_FULLY_DISCONNECTED blocks the download, and the tests can't run on the build machine anyway. Disable doCheck when host != build. - pythonSupport defaulted to true, but FindPython runs the build-platform Python, which can't find target-platform NumPy headers. Default to false when not canExecute. - protobuf was only in nativeBuildInputs (for protoc), so the linker found the build-platform libprotobuf-lite.so. Add it to buildInputs too. Resolves NixOS#462791