Print the compiler version information on posix builds

This commit is contained in:
Robin Dunn
2019-05-27 22:06:49 -07:00
parent 20d5780a44
commit cf35065141

11
wscript
View File

@@ -9,9 +9,10 @@
import sys
import os
import textwrap
import buildtools.config
cfg = buildtools.config.Config(True)
from buildtools.config import Config, runcmd, msg
cfg = Config(True)
#-----------------------------------------------------------------------------
# Options and configuration
@@ -535,6 +536,12 @@ def build(bld):
cfg.finishSetup(bld.env.wx_config)
if not isWindows:
cmd = ' '.join(bld.env.CC) + ' --version'
copmpiler = runcmd(cmd, getOutput=True, echoCmd=False)
copmpiler = textwrap.indent(copmpiler, ' '*5)
msg("**** Compiler: {}\n{}".format(cmd, copmpiler))
# Copy the license files from wxWidgets
updateLicenseFiles(cfg)