aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend
diff options
context:
space:
mode:
authorLaurin-Luis Lehning <65224843+e820@users.noreply.github.com>2020-12-14 14:04:25 +0100
committerDylan Baker <dylan@pnwbakers.com>2020-12-14 11:23:53 -0800
commit919278e3e1db85b4acc517e5614cc6c7b3163aa4 (patch)
treeca72724d08e98a905520b872d271bc4b6d3fbb24 /mesonbuild/backend
parent4053babf9cc240051df20576d1eed4f904eaa71e (diff)
downloadmeson-919278e3e1db85b4acc517e5614cc6c7b3163aa4.zip
meson-919278e3e1db85b4acc517e5614cc6c7b3163aa4.tar.gz
meson-919278e3e1db85b4acc517e5614cc6c7b3163aa4.tar.bz2
Give get_gui_app_args access to the Environment
Diffstat (limited to 'mesonbuild/backend')
-rw-r--r--mesonbuild/backend/ninjabackend.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 9193dfc..1ec1af0 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -2702,8 +2702,9 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485'''))
# If gui_app is significant on this platform, add the appropriate linker arguments.
# Unfortunately this can't be done in get_target_type_link_args, because some misguided
# libraries (such as SDL2) add -mwindows to their link flags.
+
if target.gui_app is not None:
- commands += linker.get_gui_app_args(target.gui_app)
+ commands += linker.get_gui_app_args(self.environment, target.gui_app)
else:
commands += linker.get_win_subsystem_args(self.environment, target.win_subsystem)
return commands