Revert^2 "cc_baremetal_defaults: Disable SVE"
This reverts commit 09c125fd8d1329c0d67d94378998dded7bb95cb3.
Reason for revert: generates unsupported SVE instructions in pvmfw, breaking AVF (b/383555794)
Change-Id: I566de98d1da9259f6620712a28dd97267d81a3d5
diff --git a/Android.bp b/Android.bp
index 34f9bf0..6db4963 100644
--- a/Android.bp
+++ b/Android.bp
@@ -147,6 +147,16 @@
// 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"],
}