mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 01:45:19 +01:00
wscript: try to find alloca in stdlib.h on platforms without alloca.h or malloc.h
This commit is contained in:
parent
c448c7b0b1
commit
dbdd330cf7
3
wscript
3
wscript
@ -378,6 +378,9 @@ def configure(conf):
|
||||
conf.define('ALLOCA_H', 'alloca.h')
|
||||
elif conf.check_cc(header_name='malloc.h', mandatory=False):
|
||||
conf.define('ALLOCA_H', 'malloc.h')
|
||||
elif conf.check_cc(fragment = '''#include <stdlib.h>
|
||||
int main(void) { alloca(1); }''', msg = 'Checking for alloca in stdlib.h'):
|
||||
conf.define('ALLOCA_H', 'stdlib.h')
|
||||
|
||||
if conf.env.DEST_OS == 'nswitch':
|
||||
conf.check_cfg(package='solder', args='--cflags --libs', uselib_store='SOLDER')
|
||||
|
Loading…
Reference in New Issue
Block a user