mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 19:10:37 +00:00
wscript: check malloc.h first to make checks on Windows slightly faster
This commit is contained in:
parent
cf557d191a
commit
1464e1e2be
8
wscript
8
wscript
@ -346,10 +346,10 @@ def configure(conf):
|
|||||||
conf.define('STDINT_H', 'stdint.h' if conf.check_cc(header_name='stdint.h', mandatory=False) else 'pstdint.h')
|
conf.define('STDINT_H', 'stdint.h' if conf.check_cc(header_name='stdint.h', mandatory=False) else 'pstdint.h')
|
||||||
|
|
||||||
# check if we can use alloca.h or malloc.h
|
# check if we can use alloca.h or malloc.h
|
||||||
if conf.check_cc(header_name='alloca.h', mandatory=False):
|
for hdr in ['malloc.h', 'alloca.h']:
|
||||||
conf.define('ALLOCA_H', 'alloca.h')
|
if conf.check_cc(header_name=hdr, mandatory=False):
|
||||||
elif conf.check_cc(header_name='malloc.h', mandatory=False):
|
conf.define('ALLOCA_H', hdr)
|
||||||
conf.define('ALLOCA_H', 'malloc.h')
|
break
|
||||||
|
|
||||||
if conf.env.DEST_OS == 'nswitch':
|
if conf.env.DEST_OS == 'nswitch':
|
||||||
conf.check_cfg(package='solder', args='--cflags --libs', uselib_store='SOLDER')
|
conf.check_cfg(package='solder', args='--cflags --libs', uselib_store='SOLDER')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user