Skip to content

Fix loongarch64 emulated tests.

It turns out we cannot rely on binfmt in a docker image without privileged access (which we don't want to enable).

So, we instead need to configure cmake to explicitly use the QEMU emulator. We do this by setting CMAKE_SYSTEM_NAME to inform cmake we're cross-compiling, then setting CMAKE_CROSSCOMPILING_EMULATOR which will be appended to any custom tests.

We also need to adjust EigenTesting.cmake to support the emulator, which means:

  • explicitly setting the COMMAND property for tests
  • removing the CROSSCOMPILING_EMULATOR property for failtest targets, since they are host build commands
Edited by Antonio Sánchez

Merge request reports

Loading