Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: huzhongshan on April 14, 2011, 05:13:04 pm

Title: can I set optimize option for individual cpp file?
Post by: huzhongshan on April 14, 2011, 05:13:04 pm
I use tdm4.5.2 gcc , and find that its optimization (esp. with -O3 ) will bring some error for one cpp file in my project. I want to use -O2 only for this cpp file , and other files still -O3 , how can I do this?
Title: Re: can I set optimize option for individual cpp file?
Post by: oBFusCATed on April 14, 2011, 05:21:39 pm
select the file -> right click -> properties -> advanced -> then you modify the command executed
Title: Re: can I set optimize option for individual cpp file?
Post by: MortenMacFly on April 14, 2011, 05:21:48 pm
Project manager -> right click on the file -> properties -> adjust build as needed, using available macros.