Make configure -force-asserts affect the Qt build only
Before this change, configure -force-asserts would affect qmake-based user projects too, potentially forcing the user to remove the QT_FORCE_ASSERTS define in their own projects. [ChangeLog][configure] The -force-asserts option now affects the Qt build only, not user projects. Change-Id: Iecca3c9f7e8261996c5d8bcba8adbc0db1dc1c99 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
de751066d6
commit
b63e99d041
@ -13,7 +13,6 @@ win32 {
|
||||
}
|
||||
}
|
||||
CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG
|
||||
qtConfig(force_asserts): DEFINES += QT_FORCE_ASSERTS
|
||||
no_keywords:DEFINES += QT_NO_KEYWORDS
|
||||
plugin { #Qt plugins
|
||||
static:DEFINES += QT_STATICPLUGIN
|
||||
|
@ -69,6 +69,8 @@ contains(TEMPLATE, .*lib)|darwin {
|
||||
macos: DEFINES += GL_SILENCE_DEPRECATION
|
||||
uikit: DEFINES += GLES_SILENCE_DEPRECATION
|
||||
|
||||
qtConfig(force_asserts): DEFINES += QT_FORCE_ASSERTS
|
||||
|
||||
# The remainder of this file must not apply to host tools/libraries,
|
||||
# as the host compiler's version and capabilities are not checked.
|
||||
host_build:cross_compile: return()
|
||||
|
Loading…
x
Reference in New Issue
Block a user