From c55bdc271fd4014f0bdb314840d89ceb02d6fc40 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Wed, 27 Apr 2016 13:42:22 +0200 Subject: [PATCH] don't apply warning options to host builds the host compiler's version is not determined, so we cannot make any assumptions about its capabilities. Task-number: QTBUG-53017 Change-Id: I939fd7402b5daac73f2195b9d8763b9008bc7ea4 Reviewed-by: Thiago Macieira Reviewed-by: Rolf Eike Beer --- mkspecs/features/qt_common.prf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mkspecs/features/qt_common.prf b/mkspecs/features/qt_common.prf index cc8ed87b90..de9ba9dde9 100644 --- a/mkspecs/features/qt_common.prf +++ b/mkspecs/features/qt_common.prf @@ -44,6 +44,10 @@ contains(TEMPLATE, .*lib) { QMAKE_PRL_INSTALL_REPLACE += lib_replace } +# The remainder of this file must not apply to bootstrapped tools, +# as the host compiler's version and capabilities are not checked. +host_build:force_bootstrap: return() + warnings_are_errors:warning_clean { # If the module declares that it has does its clean-up of warnings, enable -Werror. # This setting is compiler-dependent anyway because it depends on the version of the