mirror of https://github.com/lukechilds/cc-rs.git
Browse Source
This is mostly useful when your tests require building some piece of C code, but you do not want the entire crate to be linked against it. You can then just do `#[cfg_attr(test,link(name = "mylibrary", kind = "static"))]` and the code will only be linked for tests.add-rc-path
Niels Grewe
10 years ago
1 changed files with 16 additions and 2 deletions
Loading…
Reference in new issue