diff options
Diffstat (limited to 'Android.bp')
-rw-r--r-- | Android.bp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp index 34f9bf012..6db496361 100644 --- a/Android.bp +++ b/Android.bp @@ -147,6 +147,16 @@ all_apex_contributions { // Framework guests. cc_defaults { name: "cc_baremetal_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", + ], + }, + }, defaults_visibility: ["//visibility:public"], } |