diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index e27ae2b3b..f8b8b0d59 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']