Closed Bug 1254884 Opened 8 years ago Closed 8 years ago

Can't use booleans in set_config() or set_define()

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox48 fixed)

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: glandium, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Adding, for instance set_define('SPIDERMONKEY_PROMISE', True) fails with:

 0:06.06 js/src>   File "./config.status", line 433, in <module>
 0:06.06 js/src>     "SPIDERMONKEY_PROMISE": true,
 0:06.06 js/src> NameError: name 'true' is not defined
The way we're writing config.status means everything we put in the config needs to JSON serialize to valid Python.

We could add a special case convert True to '1', or just have set_config or set_define with one argument mean the corresponding value ends up in the config as '1' to make this more convenient to write.
I was thinking adding something like: true, false, null = True, False, None
Comment on attachment 8730943 [details]
MozReview Request: Bug 1254884 - Make JSON serialization to config.status more readable as python

https://reviewboard.mozilla.org/r/40257/#review36791

Sure.
Attachment #8730943 - Flags: review?(cmanchester) → review+
https://hg.mozilla.org/mozilla-central/rev/c916fde5ebb3
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Blocks: 1258618
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: