问题
I have a non standard c compiler, for the example lets call it comp.
How can I use it with Waf?
I see that in all the examples:
def options(ctx):
ctx.load('compiler_c')
def configure(ctx):
ctx.load('compiler_c')
And I want to load my own compiler - comp, so that any build or task will be assosiated with it?
Thanks!
回答1:
The best option is to define your own c_compiler tool, see for example icc in waflib/Tools or c_bgxlc in waflib/extras, modules called c_* in extras will be automatically loaded by load('compiler_c').
来源:https://stackoverflow.com/questions/13613253/using-a-non-standard-c-compiler-with-waf