tensorflow/third_party/farmhash/farmhash.BUILD
Christian Sigg 61d5053cb8 Move ABSL, farmhash, and gemmlowp repository macros to their own files.
PiperOrigin-RevId: 359128955
Change-Id: Id3491fe77d17334b051737571e013d0f1747e632
2021-02-23 14:09:16 -08:00

24 lines
493 B
Plaintext

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"],
)