Avoid having to set many things in mozconfigs
Categories
(Firefox Build System :: General, task)
Tracking
(firefox86 fixed)
Tracking | Status | |
---|---|---|
firefox86 | --- | fixed |
People
(Reporter: glandium, Assigned: glandium)
References
Details
Attachments
(12 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
That's been a long lasting pet peeve of mine. I don't remember what last week brought me to actually look into this this week, but here I am. I actually started with 70% of what I'm going to attach shortly, but that led me to bug 1480005 getting in the way, so I went with that one first. And when I started working on this, I had an epiphany about how to fix bug 1553230 in a much simpler manner than I had in mind originally, so that's coming next.
As far as mozconfigs are concerned, things still remain in them that I'd eventually like to see go, but this bug will give us:
43 files changed, 12 insertions(+), 246 deletions(-)
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
The code in nodeutil.py, used by configure, already looks in MOZ_FETCHES_DIR.
Assignee | ||
Comment 3•4 years ago
|
||
Assignee | ||
Comment 4•4 years ago
|
||
The only thing that varies between toolchain_search_path and
host_toolchain_search_path is the path to the MSVC C/C++ compiler and
tools, because MSVC has a different compiler for each platform, and host
and target platforms may differ (when e.g. compiling for arm64 on
x86_64).
However, we don't use the MSVC compiler anymore, and the only thing we
use its path for is the assembler, which we don't use for host things
(and we don't have a HOST_AS), and to derive the path to some system
headers/SDK.
Assignee | ||
Comment 5•4 years ago
|
||
None of the paths added to the toolchain search path contain them.
Assignee | ||
Comment 6•4 years ago
|
||
We don't need to check the MSVC compiler directory for more than a few
programs.
Assignee | ||
Comment 7•4 years ago
|
||
Assignee | ||
Comment 8•4 years ago
|
||
Instead of adding all possible tool paths from ~/.mozbuild, we only
add the relevant paths for each of the tools we search for.
Assignee | ||
Comment 9•4 years ago
|
||
When MOZ_FETCHES_DIR is set, use that instead of ~/.mozbuild. This will
allow to find them on automation without explicit mozconfig help.
Assignee | ||
Comment 10•4 years ago
|
||
This will allow to find them on automation without setting anything in
mozconfigs.
Assignee | ||
Comment 11•4 years ago
|
||
Assignee | ||
Comment 12•4 years ago
|
||
Configure already figure those properly from the .
Comment 13•4 years ago
|
||
This is great stuff, and the separated patches are appreciated. Thanks for working on this!
Comment 14•4 years ago
|
||
Comment 15•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/cb585d073253
https://hg.mozilla.org/mozilla-central/rev/02c8547c2001
https://hg.mozilla.org/mozilla-central/rev/ea8cc5800efd
https://hg.mozilla.org/mozilla-central/rev/0f8f41082d74
https://hg.mozilla.org/mozilla-central/rev/9ec2175a73a1
https://hg.mozilla.org/mozilla-central/rev/6e63e01e2a3b
https://hg.mozilla.org/mozilla-central/rev/2c830bafb2af
https://hg.mozilla.org/mozilla-central/rev/62b63ac811f0
https://hg.mozilla.org/mozilla-central/rev/9e6cbf7d1d04
https://hg.mozilla.org/mozilla-central/rev/963f5839789d
https://hg.mozilla.org/mozilla-central/rev/252960b9bd0e
https://hg.mozilla.org/mozilla-central/rev/2b7973c723cc
Description
•