projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b5a5c3
)
add optional flag for disabling compiler optimization (debug only)
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 6 Sep 2012 14:54:16 +0000
(16:54 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 6 Sep 2012 14:54:38 +0000
(16:54 +0200)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index 4ef4dfaa75045db305c79aeb56dcb615a7bc609f..74cb080582a1c496c50b0b96677a634313875f8b 100644
(file)
--- 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()