forked from qt-creator/qt-creator
Sanitize: Add sanitize flags to shared libraries
For MSVC, all libraries need to have the same flags, therefore we add them here. Change-Id: If980ca138dfde0a5ec52b1879c2c703309950a37 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -11,3 +11,7 @@ if (WIN32)
|
||||
target_compile_definitions(shared_qtlockedfile PRIVATE
|
||||
"QT_QTLOCKEDFILE_EXPORT=__declspec(dllexport)" _UNICODE UNICODE)
|
||||
endif()
|
||||
|
||||
if (WITH_SANITIZE)
|
||||
qtc_enable_sanitize(shared_qtlockedfile ${SANITIZE_FLAGS})
|
||||
endif()
|
||||
|
@@ -7,3 +7,7 @@ target_include_directories(shared_qtsingleapplication PUBLIC "${CMAKE_CURRENT_SO
|
||||
if (WIN32)
|
||||
target_compile_definitions(shared_qtsingleapplication PRIVATE "QT_QTSINGLEAPPLICATION_EXPORT=__declspec(dllexport)")
|
||||
endif()
|
||||
|
||||
if (WITH_SANITIZE)
|
||||
qtc_enable_sanitize(shared_qtsingleapplication ${SANITIZE_FLAGS})
|
||||
endif()
|
||||
|
@@ -6,3 +6,7 @@ if (WIN32)
|
||||
else()
|
||||
add_library(registryaccess INTERFACE)
|
||||
endif()
|
||||
|
||||
if (WITH_SANITIZE)
|
||||
qtc_enable_sanitize(registryaccess ${SANITIZE_FLAGS})
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user