diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2020-09-27 20:21:59 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-10-07 18:55:25 +0300 |
commit | 1a0603835e3c9f1047d9b7694efc996219a422e4 (patch) | |
tree | 17262dcb1829ebad6a9817ce8571beb342eaad75 /mesonbuild/compilers/compilers.py | |
parent | 8b20852b0ff35a9e19b3b26c04decdef35036fd5 (diff) | |
download | meson-1a0603835e3c9f1047d9b7694efc996219a422e4.zip meson-1a0603835e3c9f1047d9b7694efc996219a422e4.tar.gz meson-1a0603835e3c9f1047d9b7694efc996219a422e4.tar.bz2 |
Add win_subsystem kwarg. Closes #7765.
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r-- | mesonbuild/compilers/compilers.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 4b48e31..fa1046a 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -878,6 +878,13 @@ class Compiler(metaclass=abc.ABCMeta): def get_gui_app_args(self, value: bool) -> T.List[str]: return [] + def get_win_subsystem_args(self, value: str) -> T.List[str]: + # This returns an empty array rather than throws to simplify the code. + # Otherwise we would have to check whenever calling this function whether + # the target is for Windows. There are also many cases where this is + # a meaningless choice, such as with Jave or C#. + return [] + def has_func_attribute(self, name: str, env: 'Environment') -> T.Tuple[bool, bool]: raise EnvironmentException( 'Language {} does not support function attributes.'.format(self.get_display_language())) |