Skip to content

Commit 2830031

Browse files
committed
Re-added direct match early out
1 parent cc974a0 commit 2830031

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmake/godotcpp.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ function(godot_arch_name OUTVAR)
7878
endif()
7979
endif()
8080

81+
# Direct match early out.
82+
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" ARCH)
83+
if(ARCH IN_LIST ARCH_LIST)
84+
set(${OUTVAR} "${ARCH}" PARENT_SCOPE)
85+
return()
86+
endif()
87+
8188
# Known aliases
8289
set(x86_64 "w64;amd64;x86-64")
8390
set(arm32 "armv7;armv7-a")

0 commit comments

Comments
 (0)