diff options
author | Mattes D <github@xoft.cz> | 2015-07-29 14:59:23 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-07-29 14:59:23 +0200 |
commit | e2ec59095f680382315e22d99696695d1b8a2afb (patch) | |
tree | f0acfa0d6080de2e62efe3635b362bc03427f77b | |
parent | Merge pull request #2394 from cuberite/FixCustomRecipes (diff) | |
parent | Fix compilation on ARMv7.Fixes #2387. (diff) | |
download | cuberite-e2ec59095f680382315e22d99696695d1b8a2afb.tar cuberite-e2ec59095f680382315e22d99696695d1b8a2afb.tar.gz cuberite-e2ec59095f680382315e22d99696695d1b8a2afb.tar.bz2 cuberite-e2ec59095f680382315e22d99696695d1b8a2afb.tar.lz cuberite-e2ec59095f680382315e22d99696695d1b8a2afb.tar.xz cuberite-e2ec59095f680382315e22d99696695d1b8a2afb.tar.zst cuberite-e2ec59095f680382315e22d99696695d1b8a2afb.zip |
-rw-r--r-- | SetFlags.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake index 57cab5a1c..ca5f1d289 100644 --- a/SetFlags.cmake +++ b/SetFlags.cmake @@ -94,6 +94,10 @@ macro(set_flags) OUTPUT_VARIABLE GCC_VERSION) endif() + if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "arm") + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}" "-fomit-frame-pointer") + endif() + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++11") set(CMAKE_CXX_FLAGS_COVERAGE "${CMAKE_CXX_FLAGS_COVERAGE} -std=c++11") |