From 831ae6cf91538d20a8e18d94df63f0dfe0d43bad Mon Sep 17 00:00:00 2001 From: iximeow Date: Fri, 29 Nov 2019 22:09:39 -0800 Subject: only try to link capstone if we're using capstone --- build.rs | 7 +++++-- 1 file 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"); + } } -- cgit v1.1