diff --git a/CMakeLists.txt b/CMakeLists.txt index 11c28801c..01eb82f9b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,6 +42,9 @@ if(ADDRESS_SANITIZER) add_compile_options($,$>,-fsanitize=address,>) endif() +# keep frame pointers in both MSVC and clang-cl +add_compile_options(/Oy-) + if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") add_compile_options(-fno-delete-null-pointer-checks) endif()