Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
Kagami Sascha Rosylight 4c260516df Bug 1761633 - Silence the possible error from Get-Command r=mhentges DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D142159
2022-03-28 19:13:18 +00:00
Mitchell Hentges d484895832 Bug 1748762: Update mach.ps1 to always support MozillaBuild 4.0 r=saschanaz
MozillaBuild 4.0 changed its `start-shell.bat` API for consumers that
want to run a command within it, while keeping their current terminal
active.

For a little bit, compatibility with `MACH_PS1_USE_MOZILLABUILD` will be
maintained, though the recent work in bug 1740123 should entirely
obsolete it. It's staying around //for now// so that regressions in
1740123 don't unnecessarily impede workflows.

However, `MACH_PS1_USE_MOZILLABUILD` has some serious drawbacks already
(can't have whitespace in arguments, can't pass braces to Mach, etc).
This patch still has these drawbacks, because they're tricky to solve.

In a couple months, once bug 1740123 has settled nicely, we'll remove
support for `MACH_PS1_USE_MOZILLABUILD`.

Differential Revision: https://phabricator.services.mozilla.com/D136544
2022-01-21 18:22:59 +00:00
Mitchell Hentges 0492b82b77 Bug 1750874: Support launching Mach with `py` instead of `python` r=glandium
When installing from Python.org, the `python` command isn't available by
default (in favour of `py`). Support using `py` instead.

There were issues running `hg` when `python` isn't added to the `PATH`,
so the docs are being updated accordingly.
Of course, it's still worth supporting `py`-instead-of-`python`
workflows for `git` users who won't be impacted by that bug.

Differential Revision: https://phabricator.services.mozilla.com/D136286
2022-01-21 18:22:58 +00:00
Mitchell Hentges 92a19e0eb9 Bug 1740123: Allow invoking Mach outside of MozillaBuild r=glandium
Assuming that the `MOZILLABUILD` environment variable is set, allow
invoking Mach from non-MozillaBuild terminals.

Note that MozillaBuild still needs to be installed, and the
`MOZILLABUILD` environment variable will have to be set.

For future reference: when I tried setting this up with Windows
Store's Python 3.9, I encountered issues when running binaries installed
via `pip`: it would fail with `abort: failed to load Python DLL
python3x.dll`.

Differential Revision: https://phabricator.services.mozilla.com/D133936
2022-01-06 06:49:47 +00:00
Kagami Sascha Rosylight 7f28e343fe Bug 1686256 - Add Windows friendly wrapper for mach r=mhentges,firefox-build-system-reviewers,dmajor
This allows running mach on PowerShell for better Windows build experience. It currently has a limitation that blocks any whitespace use but such use should be rare enough.

Differential Revision: https://phabricator.services.mozilla.com/D101673
2021-01-20 02:08:40 +00:00