libfringe/build.rs

12 lines
356 B
Rust

// This file is part of libfringe, a low-level green threading library.
// Copyright (c) 2015, edef <edef@edef.eu>
// See the LICENSE file included in this distribution.
extern crate gcc;
use std::env::var_os;
fn main() {
if var_os("CARGO_FEATURE_VALGRIND").is_some() {
gcc::compile_library("libvalgrind.a", &["src/debug/valgrind/native.c"]);
}
}