compiler_d

Try to detect a D compiler from the list of supported compilers:

def options(opt):
        opt.load('compiler_d')
def configure(cnf):
        cnf.load('compiler_d')
def build(bld):
        bld.program(source='main.d', target='app')

Only two D compilers are really present at the moment:

  • gdc, the ldc compiler having a very similar command-line interface
  • dmd
waflib.Tools.compiler_d.configure(conf)[source]

Try to find a suitable D compiler or raise a waflib.Errors.ConfigurationError.

waflib.Tools.compiler_d.options(opt)[source]

Restrict the compiler detection from the command-line:

$ waf configure --check-d-compiler=dmd

Previous topic

asm

Next topic

dmd

This Page