aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/v8/v8base.pri
blob: 9cea5cf575bb38b17b1bf226001012cc5a972f01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
V8DIR = $$(V8DIR)
isEmpty(V8DIR) {
    V8DIR = $$PWD/../../3rdparty/v8
} else {
    message(using external V8 from $$V8DIR)
}

*-g++*: {
    QMAKE_CFLAGS_WARN_ON += -Wno-unused-parameter
    QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-parameter

    # mksnapshot hangs if gcc 4.5 is used
    # for reference look at http://code.google.com/p/v8/issues/detail?id=884
    equals(QT_GCC_MAJOR_VERSION, 4): equals(QT_GCC_MINOR_VERSION, 5) {
      message(because of a bug in gcc / v8 we need to add -fno-strict-aliasing)
      QMAKE_CFLAGS += -fno-strict-aliasing
      QMAKE_CXXFLAGS += -fno-strict-aliasing
    }
}