From df8db1ef98496298c391613199fca4d187bf1e2a Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Fri, 10 Mar 2023 20:04:08 +0800 Subject: [PATCH] update Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- utils.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils.cmake b/utils.cmake index d5e20af..ee8b9c2 100644 --- a/utils.cmake +++ b/utils.cmake @@ -375,6 +375,7 @@ function(setup_compile_params) _USE_MATH_DEFINES # Enable the PI constant define for the math headers. NOMINMAX # Avoid the Win32 macros conflict with std::min() and std::max(). UNICODE _UNICODE # Use the -W APIs by default. + STRICT # https://learn.microsoft.com/en-us/windows/win32/winprog/enabling-strict WIN32_LEAN_AND_MEAN WINRT_LEAN_AND_MEAN # Filter out some rarely used headers, to increase compilation speed. ) target_compile_options(${__target} PRIVATE @@ -531,7 +532,7 @@ function(setup_compile_params) $<$>:-mguard=cf> ) target_link_options(${__target} PRIVATE - $<$>:-Wl,--guard-cf> + $<$>:-Wl,-mguard=cf> ) else() # AppleClang says x86 doesn't support -fsanitize=cfi -fsanitize-cfi-cross-dso, why?