summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/time/qdatetime/qdatetime.pro
blob: 60d4d810d4afd96fe4f8c6e15ed9e494a2adef12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CONFIG += testcase
TARGET = tst_qdatetime
QT = core-private testlib
SOURCES = tst_qdatetime.cpp
DEFINES += QT_NO_KEYWORDS QT_NO_FOREACH

# For some reason using optimization here triggers a compiler issue, which causes an exception
# However, the code is correct
msvc {
    !build_pass:message ( "Compiler issue, removing -O1 flag" )
    QMAKE_CFLAGS_RELEASE -= -O1
    QMAKE_CXXFLAGS_RELEASE -= -O1
}

mac {
    OBJECTIVE_SOURCES += tst_qdatetime_mac.mm
    LIBS += -framework Foundation
}