Another attempt to fix windows compilation (#556)

This commit is contained in:
Vincent Herbet
2018-09-08 21:12:57 +02:00
committed by GitHub
parent 9a2c586720
commit d2d121619f
4 changed files with 9 additions and 3 deletions

View File

@ -291,6 +291,9 @@ class AMXXConfig(object):
'odbccp32.lib',
]
if cxx.version >= 1900:
cxx.linkflags += ['legacy_stdio_definitions.lib', 'legacy_stdio_wide_specifiers.lib']
if builder.options.opt == '1':
cxx.cflags += ['/Ox']
cxx.linkflags += ['/OPT:ICF', '/OPT:REF']