diff options
author | Benoit Jacob <benoitjacob@google.com> | 2020-03-10 23:28:24 +0300 |
---|---|---|
committer | Benoit Jacob <benoitjacob@google.com> | 2020-03-10 23:44:11 +0300 |
commit | f535b38fa991ab325644939ddc1128844e4327b5 (patch) | |
tree | 841a90d78f74cc529bf5552903f0e0b3a80709dd /BUILD | |
parent | 930045e41ca7df5616b486812cacee4a74544257 (diff) |
Do not depend on TensorFlow's config_setting's.
PiperOrigin-RevId: 300165710
Diffstat (limited to 'BUILD')
-rw-r--r-- | BUILD | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -1,7 +1,5 @@ # Ruy is not BLAS -# TODO(b/123403203) actually make TFLite use ruy. - load(":build_defs.bzl", "ruy_copts_avx2", "ruy_copts_avxvnni", "ruy_copts_base", "ruy_copts_skylake", "ruy_copts_sse42") load(":ruy_test_ext.bzl", "ruy_test_ext_defines", "ruy_test_ext_deps") load(":ruy_test.bzl", "ruy_benchmark", "ruy_test") @@ -12,6 +10,21 @@ package( ) config_setting( + name = "windows", + values = {"cpu": "x64_windows"}, +) + +config_setting( + name = "armeabi-v7a", + values = {"cpu": "armeabi-v7a"}, +) + +config_setting( + name = "x86_64", + values = {"cpu": "k8"}, +) + +config_setting( name = "optimized", values = { "compilation_mode": "opt", @@ -853,7 +866,7 @@ cc_library( # need defines, not copts, because it's controlling a header, test.h defines = ruy_test_ext_defines(), linkopts = select({ - "//third_party/tensorflow:windows": [], + ":windows": [], "//conditions:default": ["-lm"], }), deps = [ |