diff options
author | iximeow <me@iximeow.net> | 2019-11-29 22:09:39 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2020-01-12 16:10:13 -0800 |
commit | 831ae6cf91538d20a8e18d94df63f0dfe0d43bad (patch) | |
tree | 5838ea45509df10244a3ca03f63775c05cddd2e4 /build.rs | |
parent | d37aefee4edb15ca58534454c7d5dd87af696fef (diff) |
only try to link capstone if we're using capstone
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,7 @@ fn main() { - println!("cargo:rustc-link-search=/usr/lib/"); - println!("cargo:rustc-link-lib=capstone"); + #[cfg(capstone_bench)] + { + println!("cargo:rustc-link-search=/usr/lib/"); + println!("cargo:rustc-link-lib=capstone"); + } } |