Skip to content

Commit

Permalink
Fix farmhashbuild on Windows (tensorflow#4460)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy authored and jhseu committed Sep 28, 2016
1 parent 734c18b commit 78fbc21
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions farmhash.BUILD
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
licenses(["notice"]) # MIT

config_setting(
name = "windows",
values = {
"cpu": "x64_windows_msvc",
},
)


cc_library(
name = "farmhash",
srcs = ["farmhash.cc"],
hdrs = ["farmhash.h"],
# Disable __builtin_expect support on Windows
copts = select({
":windows" : ["/DFARMHASH_OPTIONAL_BUILTIN_EXPECT"],
"//conditions:default" : [],
}),
includes = ["."],
visibility = ["//visibility:public"],
)

0 comments on commit 78fbc21

Please sign in to comment.