Re-enable snapshots for non-cross-compiled builds
[profile/ivi/qtjsbackend.git] / src / v8 / v8base.pri
1 V8DIR = $$(V8DIR)
2 isEmpty(V8DIR) {
3     V8DIR = $$PWD/../3rdparty/v8
4     !exists($$V8DIR/src):error("$$V8DIR/src does not exist! $$escape_expand(\\n)\
5         If you are building from git, please ensure you have the v8 submodule available, e.g. $$escape_expand(\\n\\n)\
6         git submodule update --init src/3rdparty/v8 $$escape_expand(\\n\\n)\
7         Alternatively, Qt may be configured with -no-v8 to disable v8.\
8     ")
9 } else {
10     message(using external V8 from $$V8DIR)
11 }
12
13 *-g++*: {
14     QMAKE_CFLAGS_WARN_ON += -Wno-unused-parameter
15     QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-parameter
16
17     # mksnapshot hangs if gcc 4.5 is used
18     # for reference look at http://code.google.com/p/v8/issues/detail?id=884
19     equals(QT_GCC_MAJOR_VERSION, 4): equals(QT_GCC_MINOR_VERSION, 5) {
20       message(because of a bug in gcc / v8 we need to add -fno-strict-aliasing)
21       QMAKE_CFLAGS += -fno-strict-aliasing
22       QMAKE_CXXFLAGS += -fno-strict-aliasing
23     }
24 }