Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1427 Posts: 7608
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 81 Posts: 350
This is probably a simple question, but I did not figure it out from the docs. In XDK workbench, what is the offical way to do a "release build" insteand of debug?
I did not find a switch, however I did see in the application.mk
export BCDS_CFLAGS_DEBUG_COMMON ?= $(BCDS_CFLAGS_COMMON) -O0 -g
export BCDS_CFLAGS_DEBUG = $(BCDS_CFLAGS_DEBUG_COMMON)
export BCDS_CFLAGS_RELEASE_COMMON ?= $(BCDS_CFLAGS_COMMON) -O0 -DNDEBUG
export BCDS_CFLAGS_RELEASE = $(BCDS_CFLAGS_RELEASE_COMMON)
But still the question, where is the "offical" switch for that in wokrbench. And also isn't -O0 wrong, would have expected -Os or -O1