diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2020-04-20 15:05:54 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2020-04-28 17:56:59 +0000 |
commit | ec64f202c6ab6dd825cd5bb9dd98a0fb37570dba (patch) | |
tree | 38713c0a692ca1382bec604e9fb0b1ee7ad3525e /benchmark | |
parent | 9c674ca2a44bd0e0d1ce3fee29320938847a8caf (diff) |
Cleanup build rules for faster golem builds.
Bug: 149682808
Test: m build-art-target-golem
Change-Id: Ie6da8dd5aae7fa19f9a5ef1dd6b2f0038bd8467a
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/Android.bp | 12 | ||||
-rw-r--r-- | benchmark/scoped-primitive-array/scoped_primitive_array.cc | 2 |
2 files changed, 8 insertions, 6 deletions
diff --git a/benchmark/Android.bp b/benchmark/Android.bp index 3995ca2022..826f944c28 100644 --- a/benchmark/Android.bp +++ b/benchmark/Android.bp @@ -25,14 +25,16 @@ art_cc_library { "micro-native/micro_native.cc", "scoped-primitive-array/scoped_primitive_array.cc", ], + cflags: [ + "-Wno-frame-larger-than=", + ], + header_libs: [ + "libnativehelper_header_only", + ], + // TODO(ngeoffray): find a way to link against the libraries in the apex. shared_libs: [ "libart", - "libbacktrace", "libbase", - "libnativehelper", - ], - cflags: [ - "-Wno-frame-larger-than=", ], } diff --git a/benchmark/scoped-primitive-array/scoped_primitive_array.cc b/benchmark/scoped-primitive-array/scoped_primitive_array.cc index 005cae4ac9..459e8b17fa 100644 --- a/benchmark/scoped-primitive-array/scoped_primitive_array.cc +++ b/benchmark/scoped-primitive-array/scoped_primitive_array.cc @@ -15,7 +15,7 @@ */ #include "jni.h" -#include "nativehelper/ScopedPrimitiveArray.h" +#include "nativehelper/scoped_primitive_array.h" extern "C" JNIEXPORT jlong JNICALL Java_ScopedPrimitiveArrayBenchmark_measureByteArray( JNIEnv* env, jclass, int reps, jbyteArray arr) { |