diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2012-09-06 13:01:54 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-09 10:24:55 +0200 |
commit | 6f3fba418179505214a7f1b85c08b962f12b8db5 (patch) | |
tree | 95c9083d169befdda50313d1febeff4d0cef2b6c /src | |
parent | 9b632047874f6cc9f23520d2fcdb566bed230a97 (diff) | |
download | qtjsbackend-6f3fba418179505214a7f1b85c08b962f12b8db5.tar.gz |
Fix compilation with win32-g++ and C++11
We plan to enable -std=c++0x for MinGW gcc. However, this let gcc set
__STRICT_ANSI__, and time.h in the MinGW headers then omits declaring _tzset.
Instead of working around this in upstream v8, we just compile v8 in less strict
-std=gnu++0x mode.
Change-Id: Ia00c49b721fbf5bf90a60871c0a4841097cadd1d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/v8/v8.pro | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/v8/v8.pro b/src/v8/v8.pro index ff1b5fa..d6daa68 100644 --- a/src/v8/v8.pro +++ b/src/v8/v8.pro @@ -8,6 +8,9 @@ CONFIG += internal_module win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x66000000 +# for -std=c++0x, MinGW time.h does not declare _tzset +win32-g++*:QMAKE_CXXFLAGS_CXX11 = -std=gnu++0x + load(qt_module) CONFIG += warn_off |