aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-11-30 13:14:55 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2018-12-09 20:40:24 +0000
commit541307a426d90915153f31614788fea97692d69e (patch)
treee5a0d2bd2ec4cfc7bd391ede7381b477abbf7f05 /mesonbuild/compilers/compilers.py
parent51aaa15bda0e955e45da014ca7720d038219eeff (diff)
downloadmeson-541307a426d90915153f31614788fea97692d69e.zip
meson-541307a426d90915153f31614788fea97692d69e.tar.gz
meson-541307a426d90915153f31614788fea97692d69e.tar.bz2
Windows clang supports `-mwindows` to set subsystem
Promote get_gui_app_args from class GnuCompiler to GnuLikeCompiler
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 e27ae2b..f8b8b0d 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -1545,6 +1545,10 @@ class GnuLikeCompiler(abc.ABC):
# GNU ld and LLVM lld
return ['-Wl,--allow-shlib-undefined']
+ def get_gui_app_args(self, value):
+ if self.compiler_type.is_windows_compiler and value:
+ return ['-mwindows']
+ return []
class GnuCompiler(GnuLikeCompiler):
"""
@@ -1583,11 +1587,6 @@ class GnuCompiler(GnuLikeCompiler):
def get_pch_suffix(self):
return 'gch'
- def get_gui_app_args(self, value):
- if self.compiler_type.is_windows_compiler and value:
- return ['-mwindows']
- return []
-
def openmp_flags(self):
return ['-fopenmp']