Windows clang supports `-mwindows` to set subsystem
Promote get_gui_app_args from class GnuCompiler to GnuLikeCompiler
This commit is contained in:
parent
51aaa15bda
commit
541307a426
|
@ -1545,6 +1545,10 @@ class GnuLikeCompiler(abc.ABC):
|
||||||
# GNU ld and LLVM lld
|
# GNU ld and LLVM lld
|
||||||
return ['-Wl,--allow-shlib-undefined']
|
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):
|
class GnuCompiler(GnuLikeCompiler):
|
||||||
"""
|
"""
|
||||||
|
@ -1583,11 +1587,6 @@ class GnuCompiler(GnuLikeCompiler):
|
||||||
def get_pch_suffix(self):
|
def get_pch_suffix(self):
|
||||||
return 'gch'
|
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):
|
def openmp_flags(self):
|
||||||
return ['-fopenmp']
|
return ['-fopenmp']
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue