Add -latomic flag to benchmark_model target to fix Android x86 build.

PiperOrigin-RevId: 168281337
This commit is contained in:
Andrew Harp 2017-09-11 14:02:55 -07:00 committed by TensorFlower Gardener
parent c0348bb552
commit ed11359944

View File

@ -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"],