Open Bug 1604863 Opened 2 years ago Updated 11 months ago

mk_add_options in .mozconfig has unintuitive behavior


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



(Not tracked)


(Reporter: rstewart, Unassigned)



mk_add_options doesn't work as people would expect it to intuitively; this is an issue most recently raised in bug 1603860. We currently don't have any safeguards in place to protect users from breaking themselves like this.

Unfortunately, the nature of the feature and its implementation means that mk_add_options will behave as users intuitively expect it to sometimes but break in odd ways other times.

Unfortunately our public documentation suggests using mk_add_options in places:

Addressing this bug fully can include adding additional errors/warning messages when someone attempts to set a variable with mk_add_options that we know is broken as well as deprecating and removing mk_add_options completely.

This is related to the unresolved bug 1413294 and bug 1089911.

Summary: mk_add_options (and therefore raw "export VAR=value" statements) in .mozconfig has unintuitive behavior → mk_add_options in .mozconfig has unintuitive behavior

Updated the bug and the description to remove references to setting a compiler with "export" (i.e. export CC=clang-8) which actually seems to work fine. The text of the bug still applies to mk_add_options though.

Depends on: 1604881
Assignee: rstewart → nobody
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.