mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
wscript: disable {gcc,msvc}deps with wafcache enabled
This commit is contained in:
13
wscript
13
wscript
@@ -208,10 +208,15 @@ def configure(conf):
|
||||
conf.env.MSVC_TARGETS = ['x86']
|
||||
|
||||
# Load compilers early
|
||||
conf.load('xshlib xcompile compiler_c compiler_cxx gccdeps')
|
||||
conf.load('xshlib xcompile compiler_c compiler_cxx')
|
||||
|
||||
if conf.options.MSVCDEPS:
|
||||
conf.load('msvcdeps')
|
||||
if not conf.options.WAFCACHE:
|
||||
conf.load('gccdeps')
|
||||
|
||||
if conf.options.MSVCDEPS:
|
||||
conf.load('msvcdeps')
|
||||
|
||||
conf.env.WAFCACHE = conf.options.WAFCACHE
|
||||
|
||||
if conf.options.NSWITCH:
|
||||
conf.load('nswitch')
|
||||
@@ -535,7 +540,7 @@ int main(void) { return (int)BZ2_bzlibVersion(); }'''
|
||||
conf.add_subproject(i.name)
|
||||
|
||||
def build(bld):
|
||||
if bld.options.WAFCACHE:
|
||||
if bld.env.WAFCACHE:
|
||||
bld.load('wafcache')
|
||||
|
||||
# guard rails to not let install to root
|
||||
|
||||
Reference in New Issue
Block a user