Add -latomic flag to benchmark_model target to fix Android x86 build.
PiperOrigin-RevId: 168281337
This commit is contained in:
parent
c0348bb552
commit
ed11359944
@ -9,6 +9,7 @@ load(
|
|||||||
"//tensorflow:tensorflow.bzl",
|
"//tensorflow:tensorflow.bzl",
|
||||||
"tf_copts",
|
"tf_copts",
|
||||||
"tf_cc_test",
|
"tf_cc_test",
|
||||||
|
"if_android_mips",
|
||||||
)
|
)
|
||||||
|
|
||||||
exports_files(["LICENSE"])
|
exports_files(["LICENSE"])
|
||||||
@ -82,7 +83,7 @@ cc_binary(
|
|||||||
"-Wl,--exclude-libs,ALL", # Exclude syms in all libs from auto export
|
"-Wl,--exclude-libs,ALL", # Exclude syms in all libs from auto export
|
||||||
],
|
],
|
||||||
"//conditions:default": [],
|
"//conditions:default": [],
|
||||||
}),
|
}) + if_android_mips(["-latomic"]),
|
||||||
linkstatic = 1,
|
linkstatic = 1,
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = [":benchmark_model_lib"],
|
deps = [":benchmark_model_lib"],
|
||||||
|
Loading…
Reference in New Issue
Block a user