kse-01/tensorflow/third_party/farmhash.BUILD
github-classroom[bot] 1122cdd8b0
Initial commit
2023-10-09 11:37:31 +00:00

23 lines
493 B (Stored with Git LFS)
Text

licenses(["notice"]) # MIT
exports_files(["COPYING"])
config_setting(
name = "windows",
values = {
"cpu": "x64_windows",
},
)
cc_library(
name = "farmhash",
srcs = ["src/farmhash.cc"],
hdrs = ["src/farmhash.h"],
# Disable __builtin_expect support on Windows
copts = select({
":windows": ["/DFARMHASH_OPTIONAL_BUILTIN_EXPECT"],
"//conditions:default": [],
}),
includes = ["src/."],
visibility = ["//visibility:public"],
)