Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix running under nightly: copy prebuilt
libtensorflow.so
to OUT_DIR
A change in cargo nightly (merged on February 7th 2017) changed how dynamic libraries are loaded. This prevented the `tensorflow-sys` crate's tests to run. To fix, simply copy the `libtensorflow.so` pre-built library to `OUT_DIR` and change `cargo:rustc-link-search=` path so cargo can find it when running the tests. See: * issue: tensorflow#71 * cargo's pull request: rust-lang/cargo#3651
- Loading branch information