Alex Crichton | d820c4a | 2016-01-18 11:16:38 -0800 | [diff] [blame] | 1 | // This build script is distinct from the standard build.rs as it is only used |
2 | // for the BSDs which run a stripped down version. The `all.c` file is assumed | ||||
3 | // to have been already generated for this build script. | ||||
4 | |||||
5 | extern crate gcc; | ||||
6 | |||||
7 | fn main() { | ||||
8 | gcc::Config::new() | ||||
9 | .file("all.c") | ||||
10 | .flag("-Wall") | ||||
11 | .flag("-Wextra") | ||||
12 | .flag("-Werror") | ||||
13 | .flag("-Wno-type-limits") | ||||
14 | .compile("liball.a"); | ||||
15 | } |