Open Bug 1003945 Opened 11 years ago Updated 3 years ago

Changing preprocessor defines doesn't re-preprocess preprocessed WebIDL files (Clobber needed after landing bug 852935)

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

REOPENED

People

(Reporter: ted, Unassigned)

References

(Blocks 1 open bug)

Details

bug 852935 enabled the Gamepad API on Android. It included a change to configure.in that would cause MOZ_GAMEPAD to be set when building for Android. This patch was green on try, but when pushed to inbound it resulted in Mochitest failures trying to run the Gamepad Mochitests: https://tbpl.mozilla.org/php/getParsedLog.php?id=38814198&tree=Mozilla-Inbound Note: http://hg.mozilla.org/mozilla-central/annotate/b1d730203bb6/dom/webidl/moz.build#l503
The build log shows configure running: https://tbpl.mozilla.org/php/getParsedLog.php?id=38812931&tree=Mozilla-Inbound&full=1 ...but I don't see the WebIDL files being regenerated or GamepadBinding files being compiled.
The plot thickens! I can repro this locally by doing: hg up 74ef5120ae2f <build for android> hg up 885b5b8fd7d9 <rebuild> The build succeeds, but testing shows that while most of the Gamepad API is there (window.Gamepad is defined, the events work), navigator.getGamepads is not defined. That comes from here: http://hg.mozilla.org/mozilla-central/annotate/b1d730203bb6/dom/webidl/Navigator.webidl#l287 So we must not be rebuilding that preprocessed webidl or something like that.
Grepping for Gamepad in $objdir/dom/bindings/Navigator.webidl comes up empty, so we're not re-preprocessing that file when the set of preprocessor defines changes.
Summary: Clobber needed after landing bug 852935 (changing set of WebIDL files built) → Changing preprocessor defines doesn't re-preprocess preprocessed WebIDL files (Clobber needed after landing bug 852935)
Bug 852935 is fixed.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Reopend as per bug 1114669 comment 2.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.