From d2dd95b7ccab500e219ba039e7cb9f61f12e4e8d Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Wed, 13 Mar 2024 15:09:48 -0500 Subject: [PATCH] Replaced global_args with project_args to prevent build error on MinGW --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 125b9ec..1cb56d1 100644 --- a/meson.build +++ b/meson.build @@ -29,7 +29,7 @@ endif ws2_dep = compiler.find_library('ws2_32', required: false) winmm = compiler.find_library('winmm', required: false) if build_machine.system() == 'windows' - add_global_arguments('-Wl,--subsystem,windows', '-mwindows', language: ['cpp', 'c']) # Prevent opening console when game is run + add_project_arguments('-Wl,--subsystem,windows', '-mwindows', language: ['cpp', 'c']) # Prevent opening console when game is run endif