[all-commits] [llvm/llvm-project] e5371e: [compiler-rt] Don't build SME routines if __arm_cp...

Sander de Smalen via All-commits all-commits at lists.llvm.org
Thu Dec 12 08:00:10 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e5371eded9c22ec4854634c9c58df793562f782d
      https://github.com/llvm/llvm-project/commit/e5371eded9c22ec4854634c9c58df793562f782d
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2024-12-12 (Thu, 12 Dec 2024)

  Changed paths:
    M compiler-rt/lib/builtins/CMakeLists.txt

  Log Message:
  -----------
  [compiler-rt] Don't build SME routines if __arm_cpu_features is not initialised. (#119703)

According to the conversation

[here](https://github.com/llvm/llvm-project/pull/119414#issuecomment-2536495859),
some platforms don't enable `__arm_cpu_features` with a global
constructor, but rather do so lazily when called from the FMV resolver.

PR #119414 removed the CMake guard to check to see if the targetted
platform is baremetal or supports sys/auxv. Without this check, the
routines rely on `__arm_cpu_features` being initialised when they may
not be, depending on the platform.

This PR simply avoids building the SME routines for those platforms for
now.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list