path: root/config.tests
diff options
authorJake Petroules <>2017-09-22 11:20:54 -0700
committerJake Petroules <>2017-09-29 03:30:13 +0000
commit7fd3cc3980a25bfbc9c0aca935c2afa90230374a (patch)
tree5565efe0b903effcef7a0d9643b7822a090a23e2 /config.tests
parent0f5c4ba7cbd628a29d3e84219834c20c29cd6741 (diff)
Clean up OS version checks for Apple platforms
Convert QSysInfo/QOperatingSystemVersion to __builtin_available where required or possible, or to QOperatingSystemVersion where __builtin_available cannot be used and is not needed (such as negated conditions, which are not supported by that construct). Change-Id: I83c0e7e777605b99ff4d24598bfcccf22126fdda Reviewed-by: Thiago Macieira <>
Diffstat (limited to 'config.tests')
1 files changed, 5 insertions, 0 deletions
diff --git a/config.tests/unix/futimens/ b/config.tests/unix/futimens/
index eb3ccc56c5..83a122252a 100644
--- a/config.tests/unix/futimens/
+++ b/config.tests/unix/futimens/
@@ -1 +1,6 @@
SOURCES += futimens.cpp
+# Block futimens() on Apple platforms unless it's available on ALL deployment
+# targets. This simplifies the logic at the call site dramatically, as it isn't
+# strictly needed compared to futimes().
+darwin: QMAKE_CXXFLAGS += -Werror=unguarded-availability