Closed
Bug 530093
Opened 11 years ago
Closed 11 years ago
allow building with VC10 (VC 2010)
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ted, Assigned: ted)
References
Details
Attachments
(2 files)
766 bytes,
patch
|
jtd
:
review+
|
Details | Diff | Splinter Review |
2.82 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
Visual C++ 2010 is in public beta, so we should make sure that everything compiles with it. Needs some simple configure changes, and maybe a few other things.
Assignee | ||
Comment 1•11 years ago
|
||
I already added a start-msvc10.bat to the mozilla-build repo: http://hg.mozilla.org/mozilla-build/rev/ad3bd5686474
Comment 2•11 years ago
|
||
Separate bug for jemalloc support?
Assignee | ||
Comment 3•11 years ago
|
||
Not sure, I'll see if I get around to it. If I --disable-activex the build completes with just two patches, I'll attach them shortly. The ActiveX bits will need more work, they're full of junk like this: http://mxr.mozilla.org/mozilla-central/source/embedding/browser/activex/src/plugin/StdAfx.h#53 Which the headers that come with VC10 refuse to accept. (They want _WIN32_WINNT to be at least 0x401.)
Assignee | ||
Comment 4•11 years ago
|
||
VC10 complains about the usage of the bitset(0) constructor, saying it's ambiguous between bitset(char*) and bitset(int). The Microsoft docs (as well as other STL docs online) say that the empty bitset constructor initializes all bits to zero, so this should be functionally equivalent.
Attachment #413815 -
Flags: review?(jdaggett)
Assignee | ||
Comment 5•11 years ago
|
||
The configure changes are straightforward. The build/win32 changes are mostly straightforward, but I also unwrapped a shell loop into a $(foreach) while there. VC10 dropped support for -OPT:NOWIN98 as a linker option, so I've just unilaterally dropped it from config.mk. From reading the docs it doesn't sound like it has ever done anything useful for us anyway.
Attachment #413862 -
Flags: review?(benjamin)
Updated•11 years ago
|
Attachment #413862 -
Flags: review?(benjamin) → review+
Updated•11 years ago
|
Attachment #413815 -
Flags: review?(jdaggett) → review+
Comment 6•11 years ago
|
||
Could I also talk you into making the appropriate change at: http://hg.mozilla.org/mozilla-central/file/6de44a2c2945/tools/trace-malloc/lib/nsWinTraceMalloc.cpp#l55 so that trace-malloc works?
Assignee | ||
Comment 7•11 years ago
|
||
Looks easy, I'll get that in a followup. (I still want to fix the ActiveX stuff too, and maybe jemalloc.)
Comment 8•11 years ago
|
||
> + CXXFLAGS="$CXXFLAGS -Zc:wchar_t-" I'm going to remove this. (see bug 508905.) Could you omit this from settings for new compilers?
Assignee | ||
Comment 9•11 years ago
|
||
Pushed those two patches to trunk: http://hg.mozilla.org/mozilla-central/rev/ceef8a5c3ca1 http://hg.mozilla.org/mozilla-central/rev/27937722da69 Masatoshi: oops, I didn't remove that. Sorry! Feel free to remove it with r=me.
Comment 10•11 years ago
|
||
(In reply to comment #5) > VC10 dropped support for -OPT:NOWIN98 as a linker option, so I've just > unilaterally dropped it from config.mk. From reading the docs it doesn't sound > like it has ever done anything useful for us anyway. Is the latter confirmed? From bug 130372 comment 33, I would say it doesn't hurt to keep it for non-VC10 builds. Then, why not update the other occurrences too? http://mxr.mozilla.org/mozilla-central/search?string=nowin98&case=1&find=/config.mk
Assignee | ||
Comment 11•11 years ago
|
||
I don't care to support it, so it's gone. I didn't bother removing it from that other location probably because I just didn't notice it. Should probably remove that one too.
Updated•11 years ago
|
Attachment #413815 -
Attachment description: fix std::bitset constructor usage in gfx → fix std::bitset constructor usage in gfx
[Checkin: Comment 9]
Updated•11 years ago
|
Attachment #413862 -
Attachment description: build system changes → build system changes
[Checkin: Comment 9]
Assignee | ||
Comment 12•11 years ago
|
||
bug 559537 got filed on the ActiveX stuff in the meantime, so let's call this fixed enough. Should still fix comment 6, and file a followup for jemalloc support.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 13•11 years ago
|
||
comment 6 got spun off to bug 560969.
Assignee | ||
Comment 14•11 years ago
|
||
Filed bug 563316 about jemalloc support.
Comment 15•11 years ago
|
||
Ted Mielczarek [:ted, :luser]: I did not try, but I guess the line 3 of the start-msvc10-x64.bat file is probably not right: SET MOZ_MSVCVERSION=9 Should'n it be SET MOZ_MSVCVERSION=10 ?
Assignee | ||
Comment 16•11 years ago
|
||
Yes, Mitch pointed that out and I fixed it: http://hg.mozilla.org/mozilla-build/rev/8b587e01ca0d (I don't think that value is actually used anywhere anyway.)
Comment 17•11 years ago
|
||
Bug 585227 has been filed (not by me) for mozilla-1.9.2, mozilla-1.9.1 support.
Updated•3 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•