libfringe/build.rs

9 lines
186 B
Rust
Raw Normal View History

2015-03-27 10:48:51 +08:00
extern crate gcc;
2015-04-16 15:21:40 +08:00
use std::env::var_os;
2014-12-23 11:24:40 +08:00
fn main() {
2015-04-16 15:21:40 +08:00
if var_os("CARGO_FEATURE_VALGRIND").is_some() {
gcc::compile_library("libvalgrind.a", &["src/debug/valgrind/native.c"]);
}
2014-12-23 11:24:40 +08:00
}