Fix build with clang
authorAllan Sandfeld Jensen <allan.jensen@digia.com>
Fri, 13 Sep 2013 16:59:49 +0000 (18:59 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 19 Sep 2013 18:50:05 +0000 (20:50 +0200)
commit4ff1d0e1e73e6467aeed9313afe09ec6ece4884d
treedad9de015fe52a1761086d2f8885e93d7028ff83
parent83f0f6747f5ecf1143335b1719892de4b7a292bb
Fix build with clang

Forcing C++11 on clang does not work on older versions of clang. Instead
fix https://bugs.webkit.org/show_bug.cgi?id=115741 by disabling rvalue
references if clang is using a too old version of libstdc++11.

Avoid compile_asserts unless we have the same C++11 static asserts used in trunk.

Finally build ANGLE with the same C++11 state as the rest, otherwise it will expect
libstdc++ symbols instead of libc++ symbols.

Change-Id: Ifa49325a73d6dc17bc67bccd79813b25860df915
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Source/ThirdParty/ANGLE/ANGLE.pri
Source/WTF/wtf/Compiler.h
Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
Source/WebCore/dom/Attribute.h
Tools/qmake/mkspecs/features/default_pre.prf
Tools/qmake/mkspecs/features/unix/default_pre.prf