From 16c1d146674b34db3c23b88f2e6d1181b410a83a Mon Sep 17 00:00:00 2001 From: Robear Selwans Date: Sat, 24 Apr 2021 16:18:54 +0200 Subject: [PATCH] Added missing c_arg to meson build script Signed-off-by: Robear Selwans --- meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meson.build b/meson.build index 33bab9e..711d8d6 100644 --- a/meson.build +++ b/meson.build @@ -9,6 +9,15 @@ project('evol-sandbox', 'c', evol_subproj = subproject('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 subproject('evmod_glfw') subproject('evmod_ecs') @@ -35,6 +44,7 @@ sandbox_exe = executable( evmodscript_dep, ], install : true, + c_args: sandbox_args, ) # Copy config file