Commit 0bccf9d8 authored by Fabio Utzig's avatar Fabio Utzig Committed by David Brown
Browse files

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: default avatarFabio Utzig <utzig@apache.org>
parent 1a927dd5
Loading
Loading
Loading
Loading
+5
Changes for sim/mcuboot-sys/build.rs: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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();