Add support for parsing more MSVC command line options to check_cfg.

This commit is contained in:
Kevin Ollivier 2013-01-01 12:13:23 -08:00
parent 148598a815
commit 13ad17f96c
1 changed files with 3 additions and 1 deletions

View File

@ -159,6 +159,8 @@ def parse_flags(self, line, uselib_store, env=None, force_static=False):
elif st == '-L':
if not ot: ot = lst.pop(0)
appu('LIBPATH_' + uselib, [ot])
elif x.startswith('/LIBPATH:'):
appu('LIBPATH_' + uselib, [x.replace('/LIBPATH:', '')])
elif x == '-pthread' or x.startswith('+') or x.startswith('-std'):
app('CFLAGS_' + uselib, [x])
app('CXXFLAGS_' + uselib, [x])
@ -182,7 +184,7 @@ def parse_flags(self, line, uselib_store, env=None, force_static=False):
app('CFLAGS_' + uselib, tmp)
app('CXXFLAGS_' + uselib, tmp)
app('LINKFLAGS_' + uselib, tmp)
elif x.endswith('.a') or x.endswith('.so') or x.endswith('.dylib'):
elif x.endswith('.a') or x.endswith('.so') or x.endswith('.dylib') or x.endswith('.lib'):
appu('LINKFLAGS_' + uselib, [x]) # not cool, #762
@conf