aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/build.rs b/build.rs
index c6bc953..a941375 100644
--- a/build.rs
+++ b/build.rs
@@ -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");
+ }
}