Windows clang supports `-mwindows` to set subsystem

Promote get_gui_app_args from class GnuCompiler to GnuLikeCompiler
pull/4573/head
Jon Turney 6 years ago
parent 51aaa15bda
commit 541307a426
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
  1. 9
      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']

Loading…
Cancel
Save