search for: cmake_cxx_flags_release_init

Displaying 1 result from an estimated 1 matches for "cmake_cxx_flags_release_init".

2016 May 03
4
Linux/ARM: Segfault issue when we build clang sources including __thread variable using -O2 flag
...quot;) +endif() SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-g -O2") SET (CMAKE_CXX_FLAGS_INIT "-Wall -Wno-null-conversion -std=c++11") SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-g -O0") SET (CLR_CXX_FLAGS_CHECKED_INIT "-g -O2") -SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-g -O3") +if(CMAKE_SYSTEM_NAME STREQUAL Linux AND CMAKE_SYSTEM_PROCESSOR STREQUAL armv7l) + SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-g0 -O1") +else() + SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-g0 -O3") +endif() SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INI...