mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
54f6141287
`mach configure` currently runs the equivalent to `make -f client.mk`. This is history, and essentially does the following: - Create `configure` and `js/src/configure` from `configure.in` and `js/src/configure.in` respectively. - Create the objdir. - Run `configure` from the objdir. The `configure` script is, nowadays, only really used as a means to set OLD_CONFIGURE (and also for people who want to run `configure`, literally, as in the `configure; make` workflow). `mach configure` actually doesn't need it. Neither does recursing into `js/src` require `js/src/configure`, since bug 1520340 (and now as of bug 1669633, we don't even recurse). Because configure.py can actually derive OLD_CONFIGURE on its own (except for `js/src/configure`, but `mach configure` doesn't run that), we don't really need `configure` for `mach configure`. So all in all, we're at a point in history where it's straightforward to just initiate configure.py from mach configure, so we just do that. And in the hypothetical case where the `mach configure` code is somehow running in python2, we get the mach virtualenv python3 and use it to execute `configure.py`. Differential Revision: https://phabricator.services.mozilla.com/D93741
20 lines
773 B
Bash
20 lines
773 B
Bash
#!/bin/sh
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
# Because adding a configure file in the tree is going to conflict with
|
|
# existing configure files in people's (and automation) work trees, and
|
|
# because some automation jobs are still running autoconf and configure
|
|
# "manually", this file is actually an m4 file that is processed by
|
|
# autoconf, but doesn't call any autoconf macros. The `divert` line
|
|
# below ensures the script that follows is output by autoconf.
|
|
: "divert(0)dnl"
|
|
#!/bin/sh
|
|
|
|
SRCDIR=$(dirname $0)
|
|
TOPSRCDIR="$SRCDIR"
|
|
PYTHON3="${PYTHON3:-python3}"
|
|
|
|
exec "$PYTHON3" "$TOPSRCDIR/configure.py" "$@"
|