summaryrefslogtreecommitdiff
path: root/nn/runtime/test/Android.bp
diff options
context:
space:
mode:
authorDavid Gross <dgross@google.com>2019-12-20 14:21:58 -0800
committerDavid Gross <dgross@google.com>2019-12-20 14:21:58 -0800
commitae34d0e5cabfcfd61fcda8a9b404228871b6c95a (patch)
treee40a54704cf623d398496d87c6e23445594e285a /nn/runtime/test/Android.bp
parentd0592f4ea27ece65090e04410ba503d07d14b0d3 (diff)
downloadml-ae34d0e5cabfcfd61fcda8a9b404228871b6c95a.tar.gz
redefine _Float16 as __fp16 for x86[_64] to allow removing workaround from inhouse clang
Bug: 138709788 Test: for (walleye, aosp_x86 [on emulator], aosp_x86_64 [on emulator]) Use clang where _Float16 is disabled for x86[_64] $ cd $ANDROID_BUILD_TOP ; m checkbuild inspect build commands for nn runtime as to whether or not expected options related to redefinition are present $ cd ml/nn/runtime/test ; m NeuralNetworksTest_static inspect build commands for NeuralNetworksTest_static as to whether or not expected options related to redefinition are present verify that NeuralNetworksTest_static still passes Change-Id: I75df15d12d026f59db301afa0020890484e0ec72
Diffstat (limited to 'nn/runtime/test/Android.bp')
-rw-r--r--nn/runtime/test/Android.bp5
1 files changed, 5 insertions, 0 deletions
diff --git a/nn/runtime/test/Android.bp b/nn/runtime/test/Android.bp
index 2ac24e592..c24525680 100644
--- a/nn/runtime/test/Android.bp
+++ b/nn/runtime/test/Android.bp
@@ -286,6 +286,7 @@ cc_test {
cc_library_static {
name: "CtsNNAPITests_static",
+ defaults: ["neuralnetworks_float16"],
srcs: [
":libneuralnetworks_generated_test_harness_for_cts",
"CtsMain.cpp",
@@ -335,24 +336,28 @@ cc_library_static {
cc_library_static {
name: "neuralnetworks_generated_V1_0_example",
+ defaults: ["neuralnetworks_float16"],
srcs: ["generated/spec_V1_0/*.example.cpp"],
static_libs: ["libneuralnetworks_generated_test_harness"],
}
cc_library_static {
name: "neuralnetworks_generated_V1_1_example",
+ defaults: ["neuralnetworks_float16"],
srcs: ["generated/spec_V1_1/*.example.cpp"],
static_libs: ["libneuralnetworks_generated_test_harness"],
}
cc_library_static {
name: "neuralnetworks_generated_V1_2_example",
+ defaults: ["neuralnetworks_float16"],
srcs: ["generated/spec_V1_2/*.example.cpp"],
static_libs: ["libneuralnetworks_generated_test_harness"],
}
cc_library_static {
name: "neuralnetworks_generated_V1_3_example",
+ defaults: ["neuralnetworks_float16"],
srcs: ["generated/spec_V1_3/*.example.cpp"],
static_libs: ["libneuralnetworks_generated_test_harness"],
}