[PATCH] D151942: [BOLT] Instrumentation: AArch64 instrumentation support in runtime

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 25 11:14:49 PDT 2023


phosek added a comment.

This change broke our builder that's cross-compiling the toolchain from `x86_64-linux-gnu` to `aarch64-linux-gnu`. It looks like the bolt_rt build is now trying to execute the cross-compiled `clang` and fails because it's no possible to run the `aarch64-linux-gnu` binary on `x86_64-linux-gnu`.



================
Comment at: bolt/CMakeLists.txt:35-38
+if ((CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64"
+    OR CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
     AND (CMAKE_SYSTEM_NAME STREQUAL "Linux"
+      OR CMAKE_SYSTEM_NAME STREQUAL "Darwin"))
----------------
This probably also needs to check that `CMAKE_CROSSCOMPILING` isn't set (that is `NOT CMAKE_CROSSCOMPILING`).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D151942/new/

https://reviews.llvm.org/D151942



More information about the llvm-commits mailing list