Menu

#158 How to setting a single file to different optimization level

Version 1.x
closed-fixed
None
5
2015-08-01
2015-08-01
erikS
No

Hello, I tried to set a single file to -O1 by right click in the project window. Chose Properties->C/C++ Build->Settings->Tool Settings->Optimization-> other optimization flags -O1 . The whole Project has -Os.
But this seems not to have any influence. What can I do?

Discussion

  • Liviu Ionescu (ilg)

    this seems not to have any influence

    it should have, although it does not replace the initial -Os, it overwrites it with a new -O1 at the end of the command line.

     
  • erikS

    erikS - 2015-08-01

    it does! many thanks

     
  • Liviu Ionescu (ilg)

    you're welcome!

     
  • Liviu Ionescu (ilg)

    • status: open --> closed-fixed
    • assigned_to: Liviu Ionescu (ilg)