Skip to content

Commit

Permalink
Fix M1 build issue (#1827)
Browse files Browse the repository at this point in the history
  • Loading branch information
yongtang authored Aug 6, 2023
1 parent 41e3cb9 commit 8b87c3b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tensorflow_io/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@ load(
cc_binary(
name = "python/ops/libtensorflow_io.so",
copts = tf_io_copts(),
linkopts = select({
"@bazel_tools//src/conditions:darwin": [
"-lresolv",
],
"//conditions:default": [],
}),
linkshared = 1,
deps = [
"//tensorflow_io/core:arrow_ops",
"//tensorflow_io/core:bigquery_ops",
"//tensorflow_io/core:bigtable_ops",
"//tensorflow_io/core:audio_video_ops",
"//tensorflow_io/core:avro_ops",
"//tensorflow_io/core:avro_atds",
"//tensorflow_io/core:orc_ops",
Expand Down Expand Up @@ -42,7 +47,9 @@ cc_binary(
"@local_config_tf//:tf_header_lib",
] + select({
"@bazel_tools//src/conditions:windows": [],
"@bazel_tools//src/conditions:darwin_arm64": [],
"//conditions:default": [
"//tensorflow_io/core:audio_video_ops",
"//tensorflow_io/core:core_ops",
"//tensorflow_io/core:elasticsearch_ops",
"//tensorflow_io/core:optimization",
Expand Down

0 comments on commit 8b87c3b

Please sign in to comment.