News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Compile some files in releaseversion for debug

Started by phlox81, July 31, 2008, 02:54:39 PM

Previous topic - Next topic

phlox81

I use boost::spirit, which brings long compilation and big .o files which I really can't use, as I don't debug this part of the application.

So, now I thought, how about compiling those file in release. I found under properties that I can set a commandline for each file for compilation, but I am not sure, which is the right commanline.

So, what do I have to enter there, to make the files compile in release modus?
Or is there an easier way?

Ok, problem solved, this commandline works:
$compiler -Wall -s -O2 $includes -c $file -o $object

phlox

dmoore

another way would be to create a separate target in your project for bits you want to keep separate or compile differently (building them as a dynamic or static library). That way you won't have to keep track of settings on a per-file basis.
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]