From 217a4b329674864d711cc248693e33f826a6cd44 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Mon, 14 Aug 2017 22:49:27 +0100 Subject: [PATCH] SetFlags: Omit frame pointer in C arm debug builds Fixes mbedtls build failure with inline asm. --- SetFlags.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/SetFlags.cmake b/SetFlags.cmake index 18d5be236..c0192f4ab 100644 --- a/SetFlags.cmake +++ b/SetFlags.cmake @@ -109,6 +109,7 @@ macro(set_flags) if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fomit-frame-pointer") + set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -fomit-frame-pointer") endif() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")