Closed Bug 1289946 Opened 9 years ago Closed 9 years ago

Building with mingw-gcc fails with EnumStringComparisonError

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox51 fixed)

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

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
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
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: