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 authored and Jan Ekström committed 2018-07-19 02:38:51 +03:00
1 parent 2f7dc16995
commit 08a6827b3d
1 file changed
+2 -2
+2 -2
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"):