From 12dfd5f016069c0b6d00af53cb129e61dda96b9b Mon Sep 17 00:00:00 2001 From: ma6174 Date: Sun, 4 Aug 2019 17:03:14 +0800 Subject: [PATCH] fix Raspberry Pi build --- compiler/main.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/main.v b/compiler/main.v index 8c535dde00..37352b162d 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -710,7 +710,7 @@ fn (v mut V) cc() { } linux_host := os.user_os() == 'linux' v.log('cc() isprod=$v.pref.is_prod outname=$v.out_name') - mut a := [v.pref.cflags, '-w'] // arguments for the C compiler + mut a := [v.pref.cflags, '-std=gnu11', '-w'] // arguments for the C compiler flags := v.table.flags.join(' ') //mut shared := '' if v.pref.is_so {