commit | 0c57d2a08ca62c3020a2acdb4acfe825ed2b2657 | [log] [tgz] |
---|---|---|
author | Daniel Smilkov <smilkov@google.com> | Mon Oct 07 10:06:44 2019 -0700 |
committer | XNNPACK Team <xnnpack-github-robot@google.com> | Mon Oct 07 10:07:34 2019 -0700 |
tree | d11c9dbdf7c1edaffb0e9c3ff91a58190d9bc85a | |
parent | 1a729ec44926acdb98d42af4435d8d840bf62a86 [diff] [blame] |
Fix Bazel build for XNNPACK when using emscripten toolchain. These fixes allow TF.js to depend and successfully build the XNNPACK library in the open-source world. PiperOrigin-RevId: 273317397
diff --git a/build_defs.bzl b/build_defs.bzl index 1e9617a..5fa075c 100644 --- a/build_defs.bzl +++ b/build_defs.bzl
@@ -118,6 +118,7 @@ ":optimized_build": optimized_copts, "//conditions:default": [], }), + includes = ["include", "src"], linkstatic = True, linkopts = select({ ":linux_k8": ["-lpthread"],