summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/time/qdatetime/qdatetime.pro
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/time/qdatetime/qdatetime.pro')
-rw-r--r--tests/auto/corelib/time/qdatetime/qdatetime.pro17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/corelib/time/qdatetime/qdatetime.pro b/tests/auto/corelib/time/qdatetime/qdatetime.pro
new file mode 100644
index 0000000000..742eb47075
--- /dev/null
+++ b/tests/auto/corelib/time/qdatetime/qdatetime.pro
@@ -0,0 +1,17 @@
+CONFIG += testcase
+TARGET = tst_qdatetime
+QT = core-private testlib
+SOURCES = tst_qdatetime.cpp
+
+# 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
+}