diff --git a/tools/qmake/mkspecs/features/functions.prf b/tools/qmake/mkspecs/features/functions.prf
index 5b5e3b84a453bba719c13a70aa9d5a5e2816dcb1..c6b712a7fdc039d4abd917e44e139f498e5b61ee 100644
--- a/tools/qmake/mkspecs/features/functions.prf
+++ b/tools/qmake/mkspecs/features/functions.prf
@@ -1,5 +1,7 @@
 defineTest(isPlatformSupported) {
   static: return(false)
+  osx:lessThan(QMAKE_XCODE_VERSION, 5): return(false)
+
   linux-g++|win32-msvc2013|macx-clang: return(true)
   return(false)
 }