1
# -------------------------------------------------------------------
2
# Unix specific defaults
4
# See 'Tools/qmake/README' for an overview of the build system
5
# -------------------------------------------------------------------
7
# Use SSE2 floating point math on 32 bit instead of the default
8
# 387 to make layout test results same on 32 and on 64 bit builds.
9
# See https://bugs.webkit.org/show_bug.cgi?id=52810#c39 for details.
11
# Disable if CXXFLAGS have been set to something else.
12
!no_sse2:contains(QMAKE_CXXFLAGS, -march): CONFIG += no_sse2
14
!no_sse2:linux-g++*:isEqual(QT_ARCH,i386) {
15
QMAKE_CFLAGS += -march=pentium4 -msse2 -mfpmath=sse -mtune=generic
16
QMAKE_CXXFLAGS += -march=pentium4 -msse2 -mfpmath=sse -mtune=generic
21
# Treat warnings as errors on x86/Linux/GCC
22
isEqual(QT_ARCH,x86_64)|isEqual(QT_ARCH,i386): QMAKE_CXXFLAGS += -Werror
24
greaterThan(QT_GCC_MAJOR_VERSION, 3):greaterThan(QT_GCC_MINOR_VERSION, 5) {
25
!contains(QMAKE_CXXFLAGS, -std=(c|gnu)\\+\\+(0x|11)) {
26
# We need to deactivate those warnings because some names conflicts with upcoming c++0x types (e.g.nullptr).
27
QMAKE_CXXFLAGS_WARN_ON += -Wno-c++0x-compat
28
QMAKE_CXXFLAGS += -Wno-c++0x-compat
33
# Don't warn about OVERRIDE and FINAL, since they are feature-checked anyways
34
*clang:!contains(QMAKE_CXXFLAGS, -std=c++11) {
35
QMAKE_CXXFLAGS += -Wno-c++11-extensions -Wno-c++0x-extensions
36
QMAKE_OBJECTIVE_CFLAGS += -Wno-c++11-extensions -Wno-c++0x-extensions
39
contains(TEMPLATE, app): CONFIG += rpath
41
isEqual(QT_ARCH,i386):CONFIG(debug, debug|release) {
42
# Make ld not cache the symbol tables of input files in memory to avoid memory exhaustion during the linking phase.
43
config_gnuld: QMAKE_LFLAGS += -Wl,--no-keep-memory