diff options
author | Ian Harvey <ian@AD.MEGMS.NET.AU> | 2021-07-14 21:37:39 +0930 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-07-17 15:28:25 -0700 |
commit | 7b8fecf5734503f818ac978c279629d3564ac970 (patch) | |
tree | abf757f486bce91ba3a028efb4c4242bba1a193c /mesonbuild/linkers/linkers.py | |
parent | 7dee480a40462960db93a920d35495e59cbdbf87 (diff) | |
download | meson-7b8fecf5734503f818ac978c279629d3564ac970.zip meson-7b8fecf5734503f818ac978c279629d3564ac970.tar.gz meson-7b8fecf5734503f818ac978c279629d3564ac970.tar.bz2 |
Update linkers.py
Add /subsystem:xxx to xilink command line, either as specified in the build settings or as "console" by default.
Diffstat (limited to 'mesonbuild/linkers/linkers.py')
-rw-r--r-- | mesonbuild/linkers/linkers.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py index c26edda..bcd5355 100644 --- a/mesonbuild/linkers/linkers.py +++ b/mesonbuild/linkers/linkers.py @@ -1244,6 +1244,12 @@ class XilinkDynamicLinker(VisualStudioLikeLinkerMixin, DynamicLinker): direct: bool = True): super().__init__(['xilink.exe'], for_machine, '', always_args, version=version) + def get_gui_app_args(self, value: bool) -> T.List[str]: + return self.get_win_subsystem_args("windows" if value else "console") + + def get_win_subsystem_args(self, value: str) -> T.List[str]: + return self._apply_prefix([f'/SUBSYSTEM:{value.upper()}']) + class SolarisDynamicLinker(PosixDynamicLinkerMixin, DynamicLinker): |