Open Bug 1442729 Opened 8 years ago Updated 3 years ago

Why does mach bootstrap evaluate mozconfig?

Categories

(Firefox Build System :: Bootstrap Configuration, enhancement)

enhancement

Tracking

(Not tracked)

People

(Reporter: away, Unassigned)

Details

I have a deliberately-broken file named `mozconfig` in all my trees, to force me to be intentional in choosing a $MOZCONFIG. (Otherwise I'd frequently forget, and would end up building the defaults when that wasn't what I wanted.) STR: $ echo oops > mozconfig $ mach bootstrap In between the Mercurial wizard and the clang download, I get `line 1: oops: command not found`
Component: Build Config → mach
Oh, I know this, I diagnosed it in bug 1440874 comment 1 just yesterday! Mach commands try to ensure the "state directory" exists before doing anything, and it lives under the objdir, so we try to read the mozconfig to see if it sets an objdir. We should probably make bootstrap opt out of this somehow, since it's not a command that needs an objdir.
Product: Core → Firefox Build System
Component: Mach Core → Bootstrap Configuration
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.