diff options
| author | Laurin-Luis Lehning <65224843+e820@users.noreply.github.com> | 2020-12-14 14:18:30 +0100 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2020-12-14 11:23:53 -0800 |
| commit | 4164efceca7f0b91726e3e4258fe90aabaa5837e (patch) | |
| tree | 0f1e8275561eae10e8a84d68e67f363d1f5523fa /mesonbuild/compilers/mixins/gnu.py | |
| parent | 919278e3e1db85b4acc517e5614cc6c7b3163aa4 (diff) | |
| download | meson-4164efceca7f0b91726e3e4258fe90aabaa5837e.tar.gz | |
Propagate Windows target checks up
Diffstat (limited to 'mesonbuild/compilers/mixins/gnu.py')
| -rw-r--r-- | mesonbuild/compilers/mixins/gnu.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mesonbuild/compilers/mixins/gnu.py b/mesonbuild/compilers/mixins/gnu.py index 74841ff86..3d43162f2 100644 --- a/mesonbuild/compilers/mixins/gnu.py +++ b/mesonbuild/compilers/mixins/gnu.py @@ -214,10 +214,8 @@ class GnuLikeCompiler(Compiler, metaclass=abc.ABCMeta): def get_profile_use_args(self) -> T.List[str]: return ['-fprofile-use', '-fprofile-correction'] - def get_gui_app_args(self, env: 'Environment', value: bool) -> T.List[str]: - if self.info.is_windows() or self.info.is_cygwin(): - return ['-mwindows' if value else '-mconsole'] - return [] + def get_gui_app_args(self, value: bool) -> T.List[str]: + return ['-mwindows' if value else '-mconsole'] def compute_parameters_with_absolute_paths(self, parameter_list: T.List[str], build_dir: str) -> T.List[str]: for idx, i in enumerate(parameter_list): |
