Browse Source

wscript: make win32 common libraries check faster

pull/2/head
Alibek Omarov 3 years ago
parent
commit
9d0c7338ab
  1. 22
      wscript

22
wscript

@ -250,13 +250,7 @@ def configure(conf): @@ -250,13 +250,7 @@ def configure(conf):
# Don't check them more than once, to save time
# Usually, they are always available
# but we need them in uselib
a = map(lambda x: {
# 'features': 'c',
# 'message': '...' + x,
'lib': x,
# 'uselib_store': x.upper(),
# 'global_define': False,
}, [
a = [
'user32',
'shell32',
'gdi32',
@ -264,12 +258,16 @@ def configure(conf): @@ -264,12 +258,16 @@ def configure(conf):
'dbghelp',
'psapi',
'ws2_32'
])
]
for i in a:
conf.check_cc(**i)
# conf.multicheck(*a, run_all_tests = True, mandatory = True)
if conf.env.COMPILER_CC == 'msvc':
for i in a:
conf.start_msg('Checking for MSVC library')
conf.check_lib_msvc(i)
conf.end_msg(i)
else:
for i in a:
conf.check_cc(lib = i)
# check if we can use C99 tgmath
if conf.check_cc(header_name='tgmath.h', mandatory=False):

Loading…
Cancel
Save