aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorLaurin-Luis Lehning <65224843+e820@users.noreply.github.com>2020-12-14 13:34:40 +0100
committerDylan Baker <dylan@pnwbakers.com>2020-12-14 11:23:53 -0800
commit2fb4d1f7512a4ec125883fd65115ab33a5b06b6f (patch)
treedbb0a7b85b5227b17959aa618a5654b755d947f3 /mesonbuild/compilers/compilers.py
parent9f1ba4025260e620c8e49c3825ddfd51c1c4c4b6 (diff)
downloadmeson-2fb4d1f7512a4ec125883fd65115ab33a5b06b6f.zip
meson-2fb4d1f7512a4ec125883fd65115ab33a5b06b6f.tar.gz
meson-2fb4d1f7512a4ec125883fd65115ab33a5b06b6f.tar.bz2
Make win_subsystem a linker property
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 2acd429..ec255a8 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -874,11 +874,10 @@ class Compiler(metaclass=abc.ABCMeta):
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 []
+ # By default the dynamic linker is going to return an empty
+ # array in case it either doesn't support Windows subsystems
+ # or does not target Windows
+ return self.linker.get_win_subsystem_args(value)
def has_func_attribute(self, name: str, env: 'Environment') -> T.Tuple[bool, bool]:
raise EnvironmentException(