Skip to content

Commit 25acc16

Browse files
authored
[BOLT][RUNTIME][NFC] Fix aarch64 match (#100866)
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.
1 parent 750b12f commit 25acc16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ endforeach()
8282

8383
set(BOLT_ENABLE_RUNTIME_default OFF)
8484
if ((CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64"
85-
OR CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
85+
OR CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm64|aarch64)$")
8686
AND (CMAKE_SYSTEM_NAME STREQUAL "Linux"
8787
OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")
8888
AND (NOT CMAKE_CROSSCOMPILING))

0 commit comments

Comments
 (0)