wscript_build: apply project-wide CFLAGS/LDFLAGS to mpv.com

mpv.com fails to build when cross-compiling with a multilib version
of GCC, because the -m32 flags aren't getting passed to the build
process for osdep/win32-console-wrapper.c or the link phase for
mpv.com itself.
This commit is contained in:
Stephen Hutchinson 2018-07-17 20:49:01 -04:00 committed by Jan Ekström
parent 2f7dc16995
commit 08a6827b3d
1 changed files with 2 additions and 2 deletions

View File

@ -611,8 +611,8 @@ def build(ctx):
wrapctx.env.cprogram_PATTERN = "%s.com"
wrapflags = ['-municode', '-mconsole']
wrapctx.env.CFLAGS = wrapflags
wrapctx.env.LAST_LINKFLAGS = wrapflags
wrapctx.env.CFLAGS = ctx.env.CFLAGS + wrapflags
wrapctx.env.LAST_LINKFLAGS = ctx.env.LAST_LINKFLAGS + wrapflags
if ctx.dependency_satisfied('test'):
for test in ctx.path.ant_glob("test/*.c"):