Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: phlox81 on July 31, 2008, 02:54:39 pm
-
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
-
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.