User forums > General (but related to Code::Blocks)
default flags for debug/release target
exchg:
--- Quote from: oBFusCATed on April 04, 2017, 09:42:57 am ---Have you inspected if the script adds the -O2 explicitly?
--- End quote ---
No there is no explicit flags modification, you can check yourself, this is default console application script.
the place which was modified:
--- Code: ---function SetupTarget(target,is_debug)
{
...
if (is_debug)
{
...
}
else
{
...
target.AddCompilerOption(_T("-O3")); // <-- Set -o3
}
// all done!
return true;
}
--- End code ---
Miguel Gimenez:
Look at share\CodeBlocks\templates\wizard\common_functions.script, line 173 (or 201, depending on the compiler).
exchg:
--- Quote from: Miguel Gimenez on April 04, 2017, 01:25:10 pm ---Look at share\CodeBlocks\templates\wizard\common_functions.script, line 173 (or 201, depending on the compiler).
--- End quote ---
Yep, now it is works fine, thanks a lot.
But i am not sure that this is good from architectural point of view, because my changes will be reset after first update.
oBFusCATed:
You can place your own templates in your user settings folder. These won't be overridden with the next update.
Navigation
[0] Message Index
[*] Previous page
Go to full version