Closed Bug 1652068 Opened 5 years ago Closed 5 years ago

Configure script should say why it uses a certain compiler

Categories

(Firefox Build System :: General, enhancement, P5)

enhancement

Tracking

(firefox81 fixed)

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: KaiE, Assigned: mhentges)

References

Details

(Keywords: in-triage)

Attachments

(1 file)

Yesterday, we spent hours investigating why a specific compiler was used on my macOS system (a compiler that didn't work).

It turned out that the configure script has internal logic to decide which compiler is used, based on environmental factors such as the release branch:

Suggestion:

The configure script should print a message, near the output that is printed for testing compilers, that explains the detection strategy.

It could be as simple as "preferring the use of globally installed compilers, because building a release" or "preferring the use of the mozbuild compiler".

Thanks to :froydnj who eventually solved the mystery.
Thanks also to :dmajor and :padenot who also helped.

Severity: -- → S4
Priority: -- → P5
Keywords: in-triage
Assignee: nobody → mhentges
Status: NEW → ASSIGNED

The order in which toolchain binaries are resolved change based on environmental factors,
such as whether Firefox is being built in release mode or not.

An informative log was added in either case.

Depends on: 1655095
Pushed by mhentges@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9fffa3ba4729 Log mozbuild prioritization on configure path r=firefox-build-system-reviewers,rstewart
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: