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") |
Knight | 0e0fb68 | 2016-08-09 13:59:40 +0800 | [diff] [blame] | 13 | .flag("-Wno-deprecated-declarations") |
Alex Crichton | d820c4a | 2016-01-18 11:16:38 -0800 | [diff] [blame] | 14 | .flag("-Wno-type-limits") |
| 15 | .compile("liball.a"); |
| 16 | } |