mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[SDK][CMAKE] config.cmake: Add ARM64 compiler options (#4050)
Add generic compiler options for ARM64. Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
This commit is contained in:
parent
3eb4f4d450
commit
b5e57a8523
1 changed files with 15 additions and 0 deletions
|
@ -10,6 +10,12 @@ elseif(ARCH STREQUAL "arm")
|
|||
set(SARCH "omap3-zoom2" CACHE STRING
|
||||
"Sub-architecture (board) to build for. Specify one of:
|
||||
kurobox versatile omap3-zoom2 omap3-beagle")
|
||||
elseif(ARCH STREQUAL "arm64")
|
||||
# By design, arm64 kernels and OSes should be intercompatible, but
|
||||
# due to SoC vendors seemingly not being able to follow ARM design guidelines
|
||||
# properly, there might be a need for board-specific builds later on...
|
||||
set(SARCH "" CACHE STRING
|
||||
"Sub-architecture (board) to build for.")
|
||||
endif()
|
||||
|
||||
if(ARCH STREQUAL "i386")
|
||||
|
@ -24,6 +30,12 @@ elseif(ARCH STREQUAL "arm")
|
|||
set(OARCH "armv7-a" CACHE STRING
|
||||
"Generate instructions for this CPU type. Specify one of:
|
||||
armv5te armv7-a")
|
||||
elseif(ARCH STREQUAL "arm64")
|
||||
# This should not be bumped unless REALLY needed, because (as of 2021)
|
||||
# there are still new designs using the original A53 cores w/ armv8.0.
|
||||
set(OARCH "armv8-a" CACHE STRING
|
||||
"Generate instructions for this CPU type. Specify one of:
|
||||
armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a armv8.5-a armv8.6-a")
|
||||
endif()
|
||||
|
||||
if(ARCH STREQUAL "i386" OR ARCH STREQUAL "amd64")
|
||||
|
@ -32,6 +44,9 @@ if(ARCH STREQUAL "i386" OR ARCH STREQUAL "amd64")
|
|||
elseif(ARCH STREQUAL "arm")
|
||||
set(TUNE "generic-armv7-a" CACHE STRING
|
||||
"Which CPU ReactOS should be optimized for.")
|
||||
elseif(ARCH STREQUAL "arm64")
|
||||
set(TUNE "generic" CACHE STRING
|
||||
"Which CPU ReactOS should be optimized for.")
|
||||
endif()
|
||||
|
||||
set(OPTIMIZE "4" CACHE STRING
|
||||
|
|
Loading…
Reference in a new issue