Simplify building with MinGW toolchain

Add a waf option `--no_msvc` that switches from a MSVC toolchain to a MinGW toolchain on Windows.
This commit is contained in:
Markus Mützel
2022-07-11 19:14:22 +02:00
parent 3ac1e52676
commit a8f74c5d32
2 changed files with 20 additions and 10 deletions

View File

@@ -142,13 +142,16 @@ class Configuration(object):
self.finishSetup()
def finishSetup(self, wx_config=None, debug=None):
def finishSetup(self, wx_config=None, debug=None, compiler=None):
if wx_config is not None:
self.WX_CONFIG = wx_config
if debug is not None:
self.debug = debug
if compiler is not None:
self.COMPILER = compiler
#---------------------------------------
# MSW specific settings
if os.name == 'nt' and self.COMPILER == 'msvc':