Re: dev-embedding Digest, Vol 69, Issue 9
Kenny Knecht <[email protected]> Mon, 3 Oct 2011 11:37:21 +0200
| Newsgroups | gmane.comp.mozilla.devel.embedding |
|---|---|
| Message-ID | <[email protected]> |
Sure, I had the same problem. There are files named configure.in. There you can search for the compiler flag of your which sets the wide character flag. I build with visual studio and search for specific stuff in MSVC. Oddly enough I have to do this at 3 different places. <mozilla>\configure.in (3 hits) <mozilla>\extensions\pyxpcom\configure.in (2 hits) <mozilla>\js\src\configure.in (3 hits) I change it for all the versions of my compiler so I get (for example around line 3321 in <mozilla>\configure.in) if test "$_CC_MAJOR_VERSION" = "14"; then dnl Require VC8SP1 or newer. dnl VC8 is 14.00.50727.42, VC8SP1 is 14.00.50727.762. if test "$_CC_RELEASE" -lt 50727 -o \ \( "$_CC_RELEASE" -eq 50727 -a "$_CC_BUILD" -lt 762 \); then AC_MSG_ERROR([This version ($CC_VERSION) of the MSVC compiler is unsupported. You probably need to install Service Pack 1 of Visual Studio 2005. See https://developer.mozilla.org/en/Windows_Build_Prerequisites .]) fi _CC_SUITE=8 CXXFLAGS="$CXXFLAGS -Zc:wchar_t-" AC_DEFINE(_CRT_SECURE_NO_DEPRECATE) AC_DEFINE(_CRT_NONSTDC_NO_DEPRECATE) elif test "$_CC_MAJOR_VERSION" = "15"; then _CC_SUITE=9 CXXFLAGS="$CXXFLAGS -Zc:wchar_t-" AC_DEFINE(_CRT_SECURE_NO_WARNINGS) AC_DEFINE(_CRT_NONSTDC_NO_WARNINGS) elif test "$_CC_MAJOR_VERSION" = "16"; then _CC_SUITE=10 CXXFLAGS="$CXXFLAGS -Zc:wchar_t" AC_DEFINE(_CRT_SECURE_NO_WARNINGS) AC_DEFINE(_CRT_NONSTDC_NO_WARNINGS) So although not that easy, it is feasible. Kenny On 30/09/2011 21:00, [email protected] wrote: Date: Thu, 29 Sep 2011 19:22:48 -0700 (PDT) From: "[email protected]" <[email protected]> To: [email protected] Cc: ola oli <[email protected]> , [email protected] Subject: Re: xpcomglue_s_nomozalloc.lib compiled with wchar_t as builtin type Message-ID: <4734880.978.1317349368799.JavaMail.geo-discussion-forums@preb19> Content-Type: text/plain; charset=ISO-8859-1 Is it possible that I can rebuild xulrunner-sdk 7.0 with /Zc:wchar_t-, not treating wchar_t as built-in type? If possible, where should I specify the build flags in the extracted xulrunner-sdk source folder? My extension references some third-party libs that is built with /Zc:wchar_t- and it is impossible to rebuild them treating wchar_t as built-in type as they are obsolete. Please advise. Thanks Paulino ------------------------------ _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding End of dev-embedding Digest, Vol 69, Issue 9 ******************************************** _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding