Only use sendfile implementation on linux.
That is, use copy_file_linux.cc only if we are on linux. This fixes a bug where BSD sendfile is not the same as Linux sendfile so Mac builds fail. PiperOrigin-RevId: 282396307 Change-Id: I202ab4e0e33d4e0c45296f7b693953aac8cf4fb0
This commit is contained in:
parent
1e71cf27dc
commit
df9d9ea159
@ -25,8 +25,8 @@ cc_library(
|
||||
"posix_filesystem_helper.h",
|
||||
"copy_file.h",
|
||||
] + select({
|
||||
"//tensorflow:android": ["copy_file_portable.cc"],
|
||||
"//conditions:default": ["copy_file_linux.cc"],
|
||||
"//tensorflow:linux_x86_64": ["copy_file_linux.cc"],
|
||||
"//conditions:default": ["copy_file_portable.cc"],
|
||||
}),
|
||||
deps = [
|
||||
"//tensorflow/c:tf_status",
|
||||
|
Loading…
x
Reference in New Issue
Block a user