Building with mingw-gcc fails with EnumStringComparisonError

RESOLVED FIXED in Firefox 51

Status

defect
RESOLVED FIXED
3 years ago
Last year

People

(Reporter: glandium, Assigned: glandium)

Tracking

unspecified
mozilla51
Dependency tree / graph

Firefox Tracking Flags

(firefox51 fixed)

Details

Attachments

(1 attachment)

Fun problem: the test in get_compiler_info returns that KERNEL is 1 when the compiler is mingw-gcc. The reason is that the preprocessed file contains something like "%KERNEL WINNT", which is interpreted as meaning KERNEL is WINNT. But with mingw-gcc, WINNT is #define'd, so this ends up being interpreted as "%KERNEL 1"
Assignee: nobody → mh+mozilla
Comment on attachment 8789082 [details]
Bug 1289946 - Work around preprocessor default defines in get_compiler_info().

https://reviewboard.mozilla.org/r/77334/#review76312

LGTM
Attachment #8789082 - Flags: review+
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/43217bdb842a
Work around preprocessor default defines in get_compiler_info(). r=gps
https://hg.mozilla.org/mozilla-central/rev/43217bdb842a
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
Attachment #8789082 - Flags: review?(cmanchester)
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.