gecko-dev/python/mozbuild
Mike Hommey d747b65211 Bug 1617794 - Wrap Windows tools with Wine on cross builds. r=dmajor
Windows programs run via Wine don't like Unix absolute paths (they look
like command line arguments), so we need to use relative paths.

Mingw already run fxc2 via wine, but for some reason it doesn't care
about the Unix absolute paths. genshaders does need some adjustements to
run properly with the real fxc.

Now, on actual Windows, because the temporary directory where
tempfile.NamedTemporaryFile creates files by default is not necessarily
on the same drive as where the command runs from, a relative path can't
be constructed. So we also force the temporary file to be created in the
current (obj) directory.

There is no similar concern for other files because we only go from
objdir to srcdir, and the build system already doesn't support both
being on a separate drive.

While here, flush stdout when the genshared script writes to it, so that
the messages are printed out immediately rather than randomly, later,
after output from subprocesses.

Differential Revision: https://phabricator.services.mozilla.com/D64294

--HG--
extra : moz-landing-system : lando
2020-02-27 04:42:57 +00:00
..
dumbmake Bug 1575375 - Pull mozbuild tests out of make check. r=nalexander 2019-08-21 05:00:50 +00:00
mozbuild Bug 1617794 - Wrap Windows tools with Wine on cross builds. r=dmajor 2020-02-27 04:42:57 +00:00
mozpack Bug 1604667 - Handle case where relativesrcdir doesn't exist on Windows r=firefox-build-system-reviewers,mshal 2020-02-05 00:06:17 +00:00
setup.py Bug 1559975 - Make python/mozbuild lint with 'py2' and 'py3' r=catlee 2019-07-05 14:36:43 +00:00