Fix -Wframe-larger-than warnings in ART tests
-Wno-frame-larger-than has to be duplicated for android and host to make
sure it comes after the -Wframe-larger-than warnings inserted by
art.go target-specific properties.
This workaround was found in build/Android.bp, it is also required for
all the other test targets.
Test: build
Bug: 197230471
Change-Id: I2caa46f4a46e1634b958f0e2be1bb7175cc3e006
diff --git a/test/Android.bp b/test/Android.bp
index 616ae8c..3eb8b23 100644
--- a/test/Android.bp
+++ b/test/Android.bp
@@ -39,10 +39,16 @@
darwin: {
enabled: false,
},
+ // This has to be duplicated for android and host to make sure it
+ // comes after the -Wframe-larger-than warnings inserted by art.go
+ // target-specific properties
+ android: {
+ cflags: ["-Wno-frame-larger-than="],
+ },
+ host: {
+ cflags: ["-Wno-frame-larger-than="],
+ },
},
- cflags: [
- "-Wno-frame-larger-than=",
- ],
}
art_module_cc_defaults {