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.
This commit is contained in:
bjorn 2022-04-19 22:43:05 -07:00
parent 66c74a7cd3
commit 2dc9081d02
1 changed files with 1 additions and 0 deletions

View File

@ -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'