From 2dc9081d0290dbe5674d67baa58e880d6d5a6b9f Mon Sep 17 00:00:00 2001 From: bjorn Date: Tue, 19 Apr 2022 22:43:05 -0700 Subject: [PATCH] wasm target uses gnu11 standard; This is because compiling with newer versions of emscripten warns on use of EM_ASM without GNU C, and miniaudio uses EM_ASM. --- Tupfile.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/Tupfile.lua b/Tupfile.lua index 5cd9ac56..24cf05ae 100644 --- a/Tupfile.lua +++ b/Tupfile.lua @@ -142,6 +142,7 @@ end if target == 'wasm' then cc = 'emcc' cxx = 'em++' + cflags += '-std=gnu11' cflags += '-DLOVR_WEBGL' cflags += '-D_POSIX_C_SOURCE=200809L' lflags += '-s USE_WEBGL2'