[llvm] [BOLT][RUNTIME][NFC] Fix aarch64 match (PR #100866)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 27 04:18:20 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-bolt
Author: Vladislav Khmelevsky (yota9)
<details>
<summary>Changes</summary>
One of the problems related to #<!-- -->93151 is probably that aarch64 target
might have different names in different env, so extend aarch64 cmake cpu
match with different name aliases.
---
Full diff: https://github.com/llvm/llvm-project/pull/100866.diff
1 Files Affected:
- (modified) bolt/CMakeLists.txt (+1-1)
``````````diff
diff --git a/bolt/CMakeLists.txt b/bolt/CMakeLists.txt
index 9f5875dd21284..426801ccd99af 100644
--- a/bolt/CMakeLists.txt
+++ b/bolt/CMakeLists.txt
@@ -82,7 +82,7 @@ endforeach()
set(BOLT_ENABLE_RUNTIME_default OFF)
if ((CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64"
- OR CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
+ OR CMAKE_SYSTEM_PROCESSOR MATCHES "^(armv[8-9].*|arm64|aarch64)$")
AND (CMAKE_SYSTEM_NAME STREQUAL "Linux"
OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")
AND (NOT CMAKE_CROSSCOMPILING))
``````````
</details>
https://github.com/llvm/llvm-project/pull/100866
More information about the llvm-commits
mailing list