User forums > Using Code::Blocks
GNU ARM GCC
Devil_Advocate:
I want to use GNU ARM GCC compiler and I need to use some flags. How can I replace NAME by a custom value ? for example I want to replace -mcpu=NAME by -mcpu=arm920t.
thomas:
By prepending NAME with a dollar sign and defining its value in the project options.
Devil_Advocate:
I go to Settings->Compiler and debugger->Custom variables and add a new variable NAME with the arm920t value but it does'nt change anything
thomas:
That's possible. In some versions, the per-compiler variable settings are not honoured. It is why I told you to set the variable at project level (which you did not do).
Since you weren't telling what version you use, it is kind of hard to tell more. If you use a reasonably recent build, you could use a global compiler variable, which would offer more flexibility, too.
Devil_Advocate:
I'm using the Jul 12 2006 nightly build.
I also tried to fix the value at the project level but nothing changed.
Navigation
[0] Message Index
[#] Next page
Go to full version