1
0

SetFlags: Omit frame pointer in C arm debug builds

Fixes mbedtls build failure with inline asm.
This commit is contained in:
peterbell10 2017-08-14 22:49:27 +01:00 committed by Tiger Wang
parent 31a7d6c163
commit 217a4b3296

View File

@ -109,6 +109,7 @@ macro(set_flags)
if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm") if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fomit-frame-pointer") 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() endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")