mirror of
https://github.com/zebrajr/opencv.git
synced 2025-12-06 12:19:50 +01:00
Merge pull request #27818 from asmorkalov:as/win_linkage_hardening
Use /safeseh for x86 32-bit only.
This commit is contained in:
commit
6f040337e9
|
|
@ -41,7 +41,7 @@ if(MSVC)
|
|||
ocv_add_defense_compiler_flag("/guard:cf")
|
||||
ocv_add_defense_compiler_flag("/w34018 /w34146 /w34244 /w34267 /w34302 /w34308 /w34509 /w34532 /w34533 /w34700 /w34789 /w34995 /w34996")
|
||||
set(OPENCV_LINKER_DEFENSES_FLAGS_COMMON "${OPENCV_LINKER_DEFENSES_FLAGS_COMMON} /guard:cf /dynamicbase" )
|
||||
if(NOT X86_64)
|
||||
if(X86)
|
||||
set(OPENCV_LINKER_DEFENSES_FLAGS_COMMON "${OPENCV_LINKER_DEFENSES_FLAGS_COMMON} /safeseh")
|
||||
endif()
|
||||
elseif(CV_CLANG)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user