When CPUTYPE is an architecture name use -march
Allow architecture names to be passed in to the build system via CPUTYPE. This allows the user to use values such as armv8.1-a or armv8-a+crc as the CPUTYPE. Sponsored by: Innovate UK
This commit is contained in:
parent
51e805c43c
commit
d14897f960
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365247
@ -145,7 +145,13 @@ _CPUCFLAGS = -march=${CPUTYPE}
|
||||
_CPUCFLAGS = -march=${CPUTYPE:S/^mips//}
|
||||
. endif
|
||||
. elif ${MACHINE_CPUARCH} == "aarch64"
|
||||
. if ${CPUTYPE:Marmv*} != ""
|
||||
# Use -march when the CPU type is an architecture value, e.g. armv8.1-a
|
||||
_CPUCFLAGS = -march=${CPUTYPE}
|
||||
. else
|
||||
# Otherwise assume we have a CPU type
|
||||
_CPUCFLAGS = -mcpu=${CPUTYPE}
|
||||
. endif
|
||||
. endif
|
||||
|
||||
# Set up the list of CPU features based on the CPU type. This is an
|
||||
|
Loading…
Reference in New Issue
Block a user