Only enable AArch64 extensions if the compiler supports them 77/311277/1 accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20240521.012539
authorGeorge Steed <george.steed@arm.com>
Wed, 21 Feb 2024 09:46:23 +0000 (09:46 +0000)
committerJeongmo Yang <jm80.yang@samsung.com>
Fri, 17 May 2024 06:06:48 +0000 (15:06 +0900)
commitcb88dfaaeadcd0d84a9d76b7bb2e487dcd5d49bf
treef39c0a19b84913f6a6266d6e7932b8b63012d326
parent7d29430d67a69c156750deb2d3c87d7f8b3cd78a
Only enable AArch64 extensions if the compiler supports them

We already have some logic in the configure.sh file to selectively
disable code dependent on particular architecture extensions, however we
do not yet have anything to check that the compiler being supplied
recognises and can compile code using these extensions.

This commit adds compiler "-march=..." flag tests to the existing
extension-disable loop so that we now correctly disable extensions that
are not supported by the compiler. For AArch64 this loop also needs to
move below the existing compiler/OS handling to ensure that prefixes
like $CROSS are handled correctly before running compiler tests.

NOTE: Fix build error in aarch64.

Bug: webm:1841
Change-Id: I936b911c4b0ebf03abc34b7532b2bb4568129f57
(cherry picked from commit fa50b26848ebd89915ec2a5a138a23f1fe69d5eb)
build/make/configure.sh