From 24a36002cc39d65b8633a4ec14162d090387c767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Santos=20Costa?= Date: Sun, 18 Jan 2015 03:48:26 +0000 Subject: [PATCH] fix cmake debug --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29bdb68ea..d97e9549d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -573,13 +573,13 @@ if (CMAKE_COMPILER_IS_GNUCC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wstrict-prototypes -Wmissing-prototypes") message(STATUS "Running with CMAKE_C_FLAGS ${CMAKE_C_FLAGS}") message(STATUS "Original CMAKE_C_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG}") - set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -O -g ") + set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -g ") message(STATUS "Runing with CMAKE_C_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG}") message(STATUS "Original CMAKE_C_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE}") - set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -O3 -fomit-frame-pointer") + set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -O3 -fomit-frame-pointer -fstrict-aliasing -freorder-blocks -fsched-interblock") message(STATUS "Running with CMAKE_C_FLAGS_RELEASE ${CMAKE_C_FLAGS_RELEASE}") endif() -add_definitions(-O -fstrict-aliasing -freorder-blocks -fsched-interblock -Wall) +add_definitions( -Wall) add_definitions(-D_YAP_NOT_INSTALLED_=1 -DHAVE_CONFIG_H -DLOW_LEVEL_TRACER=1 -DDEBUG=1) add_definitions(-DTHREADEAD_CODE=1) add_definitions(-D_GNU_SOURCE=1 -D_XOPEN_SOURCE=700)