From 541307a426d90915153f31614788fea97692d69e Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Fri, 30 Nov 2018 13:14:55 +0000 Subject: Windows clang supports `-mwindows` to set subsystem Promote get_gui_app_args from class GnuCompiler to GnuLikeCompiler --- mesonbuild/compilers/compilers.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'mesonbuild/compilers/compilers.py') 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'] -- cgit v1.1