]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
cmake: check -momit-leaf-frame-pointer before using it
authorKefu Chai <tchaikov@gmail.com>
Tue, 10 Jan 2017 04:52:55 +0000 (12:52 +0800)
committerKefu Chai <tchaikov@gmail.com>
Thu, 12 Jan 2017 16:26:19 +0000 (00:26 +0800)
commitc03a80edf5056faaeb13a24c4fecf4bfbe32066d
tree464969afabdefff99be31452ff1dc3524b2164e7
parenta0deec960f3a8190831c673e5ba998fe6fb7ea90
cmake: check -momit-leaf-frame-pointer before using it

because not all archs supports this option. see
https://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html.

also do not pass "-fno-omit-frame-pointer" and
"-momit-leaf-frame-pointer" to compiler if ${CMAKE_BUILD_TYPE} is
"Debug". this matches the behaviour of DEBUG_LEVEL=2 in Makefile.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
CMakeLists.txt