Closed
Bug 1365786
Opened 7 years ago
Closed 7 years ago
specifying option(..., default=...) can not pass the linter for obscure reasons
Categories
(Firefox Build System :: General, enhancement)
Firefox Build System
General
Tracking
(firefox55 fixed)
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: froydnj, Assigned: glandium)
Details
Attachments
(1 file)
I have the following code in a moz.configure file: @depends(milestone, target) def stylo_default(milestone, target): # bindgen + C++ doesn't work on win32 at the moment. if target.os == 'WINNT' and target.bitness == 32: return False # The clang setup we use is a little unusual, and doesn't play well # with bindgen on 32-bit Linux. if target.os == 'GNU' and target.bitness == 32: return False # Stylo on Android is happening Later(tm). if target.os == 'Android': return False return milestone.is_nightly option('--enable-stylo', env='STYLO_ENABLED', help='Enables build-time support for the servo style system.', default=stylo_default) and the linter complains: ConfigureError: Missing @depends for `stylo_default`: '--help' We pass --help for @depends to other such default functions in some places...and some places we don't. glandium claims this is expected, but that the above snippet should work. glandium, do you think you can fix this?
Flags: needinfo?(mh+mozilla)
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → mh+mozilla
Flags: needinfo?(mh+mozilla)
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8868796 [details] Bug 1365786 - Avoid missing --help dep error when a @depends function uses builtins. https://reviewboard.mozilla.org/r/140402/#review144308
Attachment #8868796 -
Flags: review?(cmanchester) → review+
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/8b602649e673 Avoid missing --help dep error when a @depends function uses builtins. r=chmanchester
Comment 4•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8b602649e673
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•