diff options
author | 2025-02-20 10:02:39 +0000 | |
---|---|---|
committer | 2025-02-20 19:09:44 +0000 | |
commit | 6a30c6168f299828647747a7749a9f9ff6724853 (patch) | |
tree | 1449bf7811fb05ba800d52b1dc0c6b78b668b43a /Android.bp | |
parent | 0a8763cdcd0e8a990c040fce5b72c720362fc5e2 (diff) |
Use baseline instruction set on baremetal targets.
Instead of trying to individually disable every instruction
set extension that might not be supported in bare-metal
environments, disable them all.
Bug: 364383722
Test: presubmit
Change-Id: I881b14d28dad0372bd118731b03ead15d19dd669
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Android.bp b/Android.bp index 523f55c4b..337545bce 100644 --- a/Android.bp +++ b/Android.bp @@ -150,10 +150,11 @@ cc_defaults { arch: { arm64: { cflags: [ - // Prevent the compiler from optimizing code using SVE, as the - // baremetal environment might not have configured the hardware. - "-Xclang -target-feature", - "-Xclang -sve", + // Override the global -march= flag (as set by TARGET_ARCH_VARIANT) + // and explicitly use the baseline architecture (ARMv8-A is the first + // version with 64-bit support) to avoid emitting potentially + // unsupported instructions. + "-march=armv8-a", ], }, }, |