23 lines
493 B (Stored with Git LFS)
Text
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"],
|
|
)
|