Howto make release build
Antwort
14.10.18 08:09

Hi,

 

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

 

0 (0 Stimmen)
RE: Howto make release build
Antwort
15.10.18 15:04 als Antwort auf Sebastian Schildt.
Dear Sebastian,

For setting the option to make a release build, you simple need to open the projects properties by right-clicking the project. Then go to C/C++ Build and open up the Behavior tab. There change the Build (incremental build) to release instead of debug.

Please let me know if this was helpful and feel free to ask if you have further questions.

Kind regards,
Franjo
0 (0 Stimmen)