使用非标准的C编译器WAF [英] Using a non standard c compiler with Waf

查看:257
本文介绍了使用非标准的C编译器WAF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非标准的C编译器,为例如允许调用它可比。

I have a non standard c compiler, for the example lets call it comp.

我如何使用它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?

谢谢!

推荐答案

最好的选择就是定义自己的c_compiler工具,例如见的 ICC在waflib /工具或的在waflib c_bgxlc / 的群众演员,被称为C_ *在额外的模块将自动被加载载荷('compiler_c')

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').

这篇关于使用非标准的C编译器WAF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆