
20 Feb
2008
20 Feb
'08
8:28 p.m.
On Wed, 20 Feb 2008 18:58:27 +0100 "Ulf Samuelsson" ulf@atmel.com wrote:
Looks OK to me, but I never used "call cc-option".
cc-option will try to run the compiler with the option. If the compiler didn't complain, it evaluates to the option. If it failed, it evaluates to nothing.
Very useful if you want to introduce new compiler options without breaking compatibility with old or weird compilers. The Linux build system uses it all over the place -- I suspect we could prevent quite a few toolchain incompatibilies by using it more extensively in u-boot as well.
Of course, it won't help you if the compiler misbehaves in other ways than just refusing to accept the option.
Haavard