Added missing c_arg to meson build script

Signed-off-by: Robear Selwans <robear.selwans@outlook.com>
This commit is contained in:
2021-04-24 16:18:54 +02:00
parent 346e92faec
commit 16c1d14667

View File

@@ -9,6 +9,15 @@ project('evol-sandbox', 'c',
evol_subproj = subproject('evol') evol_subproj = subproject('evol')
evol_dep = dependency('evol') evol_dep = dependency('evol')
sandbox_args = []
cc = meson.get_compiler('c')
compiler_name = cc.get_id()
if compiler_name == 'gcc'
sandbox_args += '-fms-extensions'
endif
# The subproject's sole purpose is to make sure that the modules build # The subproject's sole purpose is to make sure that the modules build
subproject('evmod_glfw') subproject('evmod_glfw')
subproject('evmod_ecs') subproject('evmod_ecs')
@@ -35,6 +44,7 @@ sandbox_exe = executable(
evmodscript_dep, evmodscript_dep,
], ],
install : true, install : true,
c_args: sandbox_args,
) )
# Copy config file # Copy config file