diff options
author | Tor Arne Vestbø <tor.arne.vestbo@nokia.com> | 2012-01-31 14:24:03 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-01-31 21:48:23 +0100 |
commit | 36a590c90ddab6fa438b7b54b05d89e8f9698a52 (patch) | |
tree | 5a7f6e3432f4d4d32c0cab4a4bdc82e0f494160b /src/tools/uic/uic.pro | |
parent | 4ab6860172e14b0047e56ab778decafed797afae (diff) |
Don't compile UIC with -O2 inside Scratchbox
It makes QEMU crash when running the resulting binary.
Change-Id: I94e5d703205827dea88770336a8c5201e7333486
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Diffstat (limited to 'src/tools/uic/uic.pro')
-rw-r--r-- | src/tools/uic/uic.pro | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/uic/uic.pro b/src/tools/uic/uic.pro index b1840c0a85..6598180e45 100644 --- a/src/tools/uic/uic.pro +++ b/src/tools/uic/uic.pro @@ -14,6 +14,12 @@ HEADERS += uic.h SOURCES += main.cpp \ uic.cpp +linux-g++-maemo:contains(QT_ARCH, arm) { + # UIC will crash when running inside QEMU if built with -O2 + QMAKE_CFLAGS_RELEASE -= -O2 + QMAKE_CXXFLAGS_RELEASE -= -O2 +} + include(../bootstrap/bootstrap.pri) target.path=$$[QT_INSTALL_BINS] |