User forums > Using Code::Blocks

Global compiler settings policy

(1/2) > >>

p2rkw:
Currently compiler and linker settings are fixed to "use projects options only". Why other policies are not available?

oBFusCATed:
Probably because the global compiler options are always used, no matter of the policy.
This is the reason that putting something project specific there is not a good idea.

p2rkw:
Ok, so other question: what does "Set as default" option? Every project can choose other compiler, and it ignore default compiler.
For example: I want to compile "Release" version of codeblocks. So I have to add full optimization options to  "GNU GCC Compier", because codeblocks projects use this compiler. After that I build my project in debug version, so I have to revert compiler settings to defaults.
In my opinion projects should be able to use currently set default compiler.

oBFusCATed:
Hm,
I don't understand the question much.
"Set as default" just makes this compiler the default compiler for new project/targets.

For the C::B's project you can add/remove the optimization options from the project options, which will probably be inherited by all targets.
Also you can use different compiler for different targets.

BTW: we have user manual, probably it is a good idea to take a look at it.

p2rkw:
So, I have to add these options to more than 30 contrib plugins projects manually? I will create new profile to do this.

Navigation

[0] Message Index

[#] Next page

Go to full version