From e28db9fced14d1ae16b20773544f57e382b9983e Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Thu, 29 Dec 2016 00:24:58 -0800 Subject: Move most foo.BUILD files into third_party This frees up space on the TensorFlow GitHub home page! Change: 143161497 --- third_party/farmhash.BUILD | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 third_party/farmhash.BUILD (limited to 'third_party/farmhash.BUILD') 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"], +) -- cgit v1.2.3