diff --git a/CMakeLists.txt b/CMakeLists.txt index 13151b9001..1cd2e791ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,7 +170,7 @@ if(CONFIG_COMPILER_DUMP_RTL_FILES) endif() if(CMAKE_C_COMPILER_ID MATCHES "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_GREATER 15.0) - list(APPEND c_compile_options "-fzero-init-padding-bits=all") + list(APPEND c_compile_options "-fzero-init-padding-bits=all" "-fno-malloc-dce") endif() __generate_prefix_map(prefix_map_compile_options)