diff options
Diffstat (limited to 'benchmark/Android.bp')
-rw-r--r-- | benchmark/Android.bp | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/benchmark/Android.bp b/benchmark/Android.bp index da6b9e5843..342fae89fd 100644 --- a/benchmark/Android.bp +++ b/benchmark/Android.bp @@ -34,9 +34,17 @@ art_cc_library { "micro-native/micro_native.cc", "scoped-primitive-array/scoped_primitive_array.cc", ], - cflags: [ - "-Wno-frame-larger-than=", - ], + target: { + // 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="], + }, + }, header_libs: [ "libnativehelper_header_only", ], @@ -65,7 +73,15 @@ art_cc_library { ], header_libs: ["jni_headers"], stl: "libc++_static", - cflags: [ - "-Wno-frame-larger-than=", - ], + target: { + // 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="], + }, + }, } |