diff options
-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"); + } } |