Alex
Alex

Reputation: 131

Using a non standard c compiler with Waf

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!

Upvotes: 1

Views: 979

Answers (1)

haraldkl
haraldkl

Reputation: 3819

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

Upvotes: 1

Related Questions