summaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
author Andrew Chant <achant@google.com> 2025-02-14 10:27:13 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-02-14 10:27:13 -0800
commit76c144a81ece23fef09c02d18fdf95aca52c0bf9 (patch)
tree9ca57c1180a2c8dc0864afb53df89d8934c6ef3b /Android.bp
parent85cd549ecc55f7540580c5a8818ec54f02df1857 (diff)
parentfece008edd9888b4520bebe296de87e15580d054 (diff)
Merge "Revert^2 "cc_baremetal_defaults: Disable SVE"" into main
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 6c4066160..523f55c4b 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"],
}