libfringe/build.rs

11 lines
284 B
Rust
Raw Normal View History

2015-04-16 18:08:44 +08:00
// Copyright (c) 2015, edef <edef@edef.eu>
// See the LICENSE file included in this distribution.
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
}