CMake: Partially disable sanitizers for syncqt
Won't work when syncqt is built using qt_internal_add_configure_time_executable. That needs some extra infrastructure. Task-number: QTBUG-121348 Change-Id: I627dea39c906ea374848d848b0ea740826991140 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
d99b0cfed2
commit
5122fe625d
@ -18,6 +18,7 @@ if(NOT QT_INTERNAL_AVOID_OVERRIDING_SYNCQT_CONFIG)
|
||||
foreach(config IN LISTS configs)
|
||||
set(CMAKE_EXE_LINKER_FLAGS_${config} "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO}")
|
||||
endforeach()
|
||||
qt_internal_skip_sanitizer()
|
||||
endif()
|
||||
|
||||
set(compile_definitions
|
||||
@ -70,3 +71,10 @@ else()
|
||||
${config_type}
|
||||
)
|
||||
endif()
|
||||
|
||||
# Needs to be called at the end after all relevant target have created
|
||||
# when using qt_internal_add_tool.
|
||||
# Doesn't work if QT_SYNC_HEADERS_AT_CONFIGURE_TIME is TRUE.
|
||||
if(NOT QT_INTERNAL_AVOID_OVERRIDING_SYNCQT_CONFIG)
|
||||
qt_internal_skip_linking_sanitizer()
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user