diff options
author | peterbell10 <peterbell10@live.co.uk> | 2017-08-17 16:08:35 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2017-08-18 12:21:45 +0200 |
commit | af1a0188ec8a1934f32e739461ed5a2b9e51d7b8 (patch) | |
tree | fbbf0a7507d261be6feb358ea4df971ea6e1edaa | |
parent | SetFlags: Omit frame pointer in C arm debug builds (diff) | |
download | cuberite-af1a0188ec8a1934f32e739461ed5a2b9e51d7b8.tar cuberite-af1a0188ec8a1934f32e739461ed5a2b9e51d7b8.tar.gz cuberite-af1a0188ec8a1934f32e739461ed5a2b9e51d7b8.tar.bz2 cuberite-af1a0188ec8a1934f32e739461ed5a2b9e51d7b8.tar.lz cuberite-af1a0188ec8a1934f32e739461ed5a2b9e51d7b8.tar.xz cuberite-af1a0188ec8a1934f32e739461ed5a2b9e51d7b8.tar.zst cuberite-af1a0188ec8a1934f32e739461ed5a2b9e51d7b8.zip |
-rw-r--r-- | SetFlags.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
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() |