Author Topic: Compile some files in releaseversion for debug  (Read 2901 times)

Offline phlox81

  • Multiple posting newcomer
  • *
  • Posts: 53
    • phlox81.de
Compile some files in releaseversion for debug
« 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
« Last Edit: July 31, 2008, 03:49:36 pm by phlox81 »

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: Compile some files in releaseversion for debug
« Reply #1 on: July 31, 2008, 08:41:12 pm »
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.