libc-rs/libc-test/build-generated.rs
Alex Crichton d820c4a8f7 Add OpenBSD and FreeBSD CI to Travis
This commit adds support to test all libc definitions on both OpenBSD and
FreeBSD via QEMU userspace emulation. Specially prepared images for each OS are
used which are essentially intended to run a script on startup and then exit.
Documentation has been added to the `ci/README.md` file describing this new
system.
2016-01-18 22:54:28 -08:00

16 lines
432 B
Rust

// This build script is distinct from the standard build.rs as it is only used
// for the BSDs which run a stripped down version. The `all.c` file is assumed
// to have been already generated for this build script.
extern crate gcc;
fn main() {
gcc::Config::new()
.file("all.c")
.flag("-Wall")
.flag("-Wextra")
.flag("-Werror")
.flag("-Wno-type-limits")
.compile("liball.a");
}