Build in std=c99 mode

Our current travis environment still uses gcc 4.8.4 which defaults to
std=gnu90. Some of tinycrypt's code requires c99.

Signed-off-by: Fabio Utzig <utzig@apache.org>
This commit is contained in:
Fabio Utzig 2017-12-07 12:13:57 -02:00 committed by David Brown
parent 1a927dd591
commit 0bccf9d84c
1 changed files with 5 additions and 0 deletions

View File

@ -83,6 +83,11 @@ fn main() {
conf.flag("-Wall");
conf.flag("-Werror");
// FIXME: travis-ci still uses gcc 4.8.4 which defaults to std=gnu90.
// It has incomplete std=c11 and std=c99 support but std=c99 was checked
// to build correctly so leaving it here to updated in the future...
conf.flag("-std=c99");
conf.compile("libbootutil.a");
walk_dir("../../boot").unwrap();