diff options
author | Andrew Harp <andrewharp@google.com> | 2017-09-14 09:22:51 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-09-14 09:27:18 -0700 |
commit | 4f9efa79990ca3aadeb00a24772de986a5fce614 (patch) | |
tree | d9fe57caa954f58e4676a47cab7029deaf6ba193 /tensorflow/tools/benchmark | |
parent | 0550f50bfd1b02687d517928b5a7ce776e8892fc (diff) |
Android: globally use -latomic to link TF Android targets to fix x86 targets (if_android_mips was not sufficient)
PiperOrigin-RevId: 168698051
Diffstat (limited to 'tensorflow/tools/benchmark')
-rw-r--r-- | tensorflow/tools/benchmark/BUILD | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/tools/benchmark/BUILD b/tensorflow/tools/benchmark/BUILD index 279eae9bfa..a2f0e15722 100644 --- a/tensorflow/tools/benchmark/BUILD +++ b/tensorflow/tools/benchmark/BUILD @@ -9,7 +9,6 @@ load( "//tensorflow:tensorflow.bzl", "tf_copts", "tf_cc_test", - "if_android_mips", ) exports_files(["LICENSE"]) @@ -75,6 +74,7 @@ cc_binary( "-pie", "-s", "-landroid", + "-latomic", "-ljnigraphics", "-llog", "-lm", @@ -83,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"], |