Skip to content

Commit

Permalink
BUILD: Detect arm64 / aarch64 architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
Quertin authored and Krzmbrzl committed Jan 21, 2024
1 parent 4fa4c65 commit f996b3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/TargetArch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# Based on the Qt 5 processor detection code, so should be very accurate
# https://qt.gitorious.org/qt/qtbase/blobs/master/src/corelib/global/qprocessordetection.h
# Currently handles arm (v5, v6, v7), x86 (32/64), ia64, and ppc (32/64)
# Currently handles arm (v5, v6, v7), arm64 (aarch64), x86 (32/64), ia64, and ppc (32/64)

# Regarding POWER/PowerPC, just as is noted in the Qt source,
# "There are many more known variants/revisions that we do not handle/detect."
Expand Down Expand Up @@ -47,6 +47,8 @@ set(archdetect_c_code "
#else
#error cmake_ARCH arm
#endif
#elif defined(__aarch64__)
#error cmake_ARCH arm64
#elif defined(__i386) || defined(__i386__) || defined(_M_IX86)
#error cmake_ARCH x86
#elif defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(_M_X64)
Expand Down

0 comments on commit f996b3d

Please sign in to comment.