User forums > Using Code::Blocks
Compile some files in releaseversion for debug
(1/1)
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.
Navigation
[0] Message Index
Go to full version