From af1a0188ec8a1934f32e739461ed5a2b9e51d7b8 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Thu, 17 Aug 2017 15:08:35 +0100 Subject: Add link to knowledge base. --- SetFlags.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SetFlags.cmake b/SetFlags.cmake index c0192f4ab..e0eb05ef1 100644 --- a/SetFlags.cmake +++ b/SetFlags.cmake @@ -108,6 +108,8 @@ macro(set_flags) endif() if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm") + # mbed TLS uses the frame pointer's register in inline assembly: + # https://tls.mbed.org/kb/development/arm-thumb-error-r7-cannot-be-used-in-asm-here 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() -- cgit v1.2.3