Re-enable exceptions when building syncqt
syncqt uses iostream API that 'excepts'. So enable exceptions flags
when building it.
Amends 49ce711796
Pick-to: 6.6 6.5
Change-Id: Ib0cd581eaec9ae73edc9de423019098304049463
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
This commit is contained in:
parent
f5ea7dd88b
commit
0f5fbe369b
@ -7,6 +7,12 @@ if(NOT QT_INTERNAL_AVOID_OVERRIDING_SYNCQT_CONFIG)
|
||||
qt_internal_get_optimize_full_flags(optimize_full_flags)
|
||||
qt_internal_add_compiler_flags(LANGUAGES CXX CONFIGS ${configs} FLAGS "${optimize_full_flags}")
|
||||
|
||||
if(MSVC)
|
||||
qt_internal_add_compiler_flags(LANGUAGES CXX CONFIGS ${configs} FLAGS "/EHsc")
|
||||
else()
|
||||
qt_internal_add_compiler_flags(LANGUAGES CXX CONFIGS ${configs} FLAGS "-fexceptions")
|
||||
endif()
|
||||
|
||||
# Replace all linker flags with those we use in the RelWithDebInfo configuration
|
||||
list(REMOVE_ITEM configs RELWITHDEBINFO)
|
||||
foreach(config IN LISTS configs)
|
||||
|
Loading…
Reference in New Issue
Block a user