aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/benchmark
diff options
context:
space:
mode:
authorGravatar Andrew Harp <andrewharp@google.com>2017-09-11 14:02:55 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-09-11 14:09:33 -0700
commited11359944331f9f539a2627f67e67ef4dac4f40 (patch)
treeb0d66ad9bd2fe3cd5a42d992c29edb37e42b38e6 /tensorflow/tools/benchmark
parentc0348bb552f094788155a1d3e2b65672ffc4ec8a (diff)
Add -latomic flag to benchmark_model target to fix Android x86 build.
PiperOrigin-RevId: 168281337
Diffstat (limited to 'tensorflow/tools/benchmark')
-rw-r--r--tensorflow/tools/benchmark/BUILD3
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/tools/benchmark/BUILD b/tensorflow/tools/benchmark/BUILD
index a2ffca97ec..279eae9bfa 100644
--- a/tensorflow/tools/benchmark/BUILD
+++ b/tensorflow/tools/benchmark/BUILD
@@ -9,6 +9,7 @@ load(
"//tensorflow:tensorflow.bzl",
"tf_copts",
"tf_cc_test",
+ "if_android_mips",
)
exports_files(["LICENSE"])
@@ -82,7 +83,7 @@ cc_binary(
"-Wl,--exclude-libs,ALL", # Exclude syms in all libs from auto export
],
"//conditions:default": [],
- }),
+ }) + if_android_mips(["-latomic"]),
linkstatic = 1,
visibility = ["//visibility:public"],
deps = [":benchmark_model_lib"],