aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/farmhash.BUILD
diff options
context:
space:
mode:
authorGravatar Justine Tunney <jart@google.com>2016-12-29 00:24:58 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-12-29 00:51:20 -0800
commite28db9fced14d1ae16b20773544f57e382b9983e (patch)
tree84126c51638f04f7098c1f4181b88f6364fa4463 /third_party/farmhash.BUILD
parenta1a3b0c6c3abe0df0c8e017d9f134db4731484b9 (diff)
Move most foo.BUILD files into third_party
This frees up space on the TensorFlow GitHub home page! Change: 143161497
Diffstat (limited to 'third_party/farmhash.BUILD')
-rw-r--r--third_party/farmhash.BUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/third_party/farmhash.BUILD b/third_party/farmhash.BUILD
new file mode 100644
index 0000000000..6a1d4da6e5
--- /dev/null
+++ b/third_party/farmhash.BUILD
@@ -0,0 +1,23 @@
+licenses(["notice"]) # MIT
+
+exports_files(["COPYING"])
+
+config_setting(
+ name = "windows",
+ values = {
+ "cpu": "x64_windows_msvc",
+ },
+)
+
+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"],
+)