Windows clang supports `-mwindows` to set subsystem

Promote get_gui_app_args from class GnuCompiler to GnuLikeCompiler
This commit is contained in:
Jon Turney 2018-11-30 13:14:55 +00:00
parent 51aaa15bda
commit 541307a426
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
1 changed files with 4 additions and 5 deletions

View File

@ -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']