From: Felix Fietkau Date: Thu, 6 Sep 2012 14:54:16 +0000 (+0200) Subject: add optional flag for disabling compiler optimization (debug only) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b077337e6f213975a66e89d61b702aae48314885;p=project%2Fnetifd.git add optional flag for disabling compiler optimization (debug only) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ef4dfa..74cb080 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,9 @@ ENDIF() IF(DEBUG) ADD_DEFINITIONS(-DDEBUG -g3) + IF(NO_OPTIMIZE) + ADD_DEFINITIONS(-O0) + ENDIF() ENDIF()