Make DEBUG_TRACK_SEM a compile-time define so it doesn't impact performance
of release builds git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@671 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -58,6 +58,7 @@ CHOICE_debug_OPTION_debug_TITLE="Debugging information"
|
||||
CHOICE_debug_OPTION_debug_ACTION='debug_action'
|
||||
debug_action() {
|
||||
CFLAGS="$CFLAGS -g -O0 -W -Wall"
|
||||
CFLAGS="$CFLAGS -DDEBUG_TRACK_SEM" # enable semaphore deugging
|
||||
LDFLAGS="$LDFLAGS -O0"
|
||||
DEBUG=1
|
||||
}
|
||||
@@ -65,6 +66,7 @@ CHOICE_debug_OPTION_strictdebug_TITLE="Debug info + strict compile checks"
|
||||
CHOICE_debug_OPTION_strictdebug_ACTION='strictdebug_action'
|
||||
strictdebug_action() {
|
||||
CFLAGS="$CFLAGS -O1" # This is needed for -Wunitialized
|
||||
CFLAGS="$CFLAGS -DDEBUG_TRACK_SEM" # enable semaphore deugging
|
||||
CFLAGS="$CFLAGS -W -Wall \
|
||||
-Wbad-function-cast -Wcast-qual -Wmissing-prototypes \
|
||||
-Wstrict-prototypes -Wmissing-declarations \
|
||||
|
||||
Reference in New Issue
Block a user