summaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.rs b/build.rs
index 6c515a4..08715f8 100644
--- a/build.rs
+++ b/build.rs
@@ -1,4 +1,5 @@
extern crate bindgen;
+extern crate cc;
use std::env;
use std::path::PathBuf;
@@ -15,4 +16,9 @@ fn main() {
bindings
.write_to_file(out_path.join("bindings.rs"))
.expect("Couldn't write bindings!");
+
+ cc::Build::new()
+ .file("src/bch/bch.c")
+ .include("src/bch/bch.h")
+ .compile("bch");
}