From cfd35c97f0cfe947d8d31ea89613b2f66489d34c Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 29 Apr 2022 12:16:10 +0200 Subject: [PATCH] build and link against shared xxhash library --- build.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/build.rs b/build.rs index 15ceda2..fa9739e 100644 --- a/build.rs +++ b/build.rs @@ -1,9 +1,3 @@ fn main() { - let mut cc = cc::Build::new(); - - cc.include("src/c/"); - cc.file("src/c/xxhash.c"); - cc.warnings(false); - - cc.compile("xxhash"); + pkg_config::Config::new().atleast_version("0.8.1").probe("libxxhash").unwrap(); } -- 2.36.0