summaryrefslogtreecommitdiff
path: root/build.rs
blob: d6a9a5031c484aea432347a0517a134e64071c69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#[cfg(target_os = "dragonfly")]
extern crate gcc;

#[cfg(target_os = "dragonfly")]
fn main() {
    gcc::Build::new()
        .file("src/errno_dragonfly.c")
        .compile("liberrno_dragonfly.a");
}

#[cfg(not(target_os = "dragonfly"))]
fn main() {}