From 8ad563dd4251185326520bd50b08a7b6d28b0ae5 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 10 Jan 2025 22:15:23 +0300 Subject: [PATCH] wscript: try to improve build times further by using /showIncludes but only if requested (currently only on CI as it's totally broken on non-English locales) --- wscript | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index e09072319..7a7ae7b5c 100644 --- a/wscript +++ b/wscript @@ -40,8 +40,10 @@ def options(opt): grp.add_option('--enable-voicemgr', action = 'store_true', dest = 'USE_VOICEMGR', default = False, help = 'Enable VOICE MANAGER') - opt.add_subproject('dlls') - opt.add_subproject('cl_dll') + # a1ba: hidden option for CI + grp.add_option('--enable-msvcdeps', action='store_true', dest='MSVCDEPS', default=False, help='') + + opt.add_subproject('cl_dll dlls') def configure(conf): conf.load('fwgslib reconfigure compiler_optimizations') @@ -55,6 +57,9 @@ def configure(conf): # Load compilers early conf.load('xcompile compiler_c compiler_cxx gccdeps') + if conf.options.MSVCDEPS: + conf.load('msvcdeps') + # HACKHACK: override msvc DEST_CPU value by something that we understand if conf.env.DEST_CPU == 'amd64': conf.env.DEST_CPU = 'x86_64'