Using a non standard c compiler with Waf

醉酒当歌 提交于 2019-12-11 13:53:46

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!