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 three D compilers are really present at the moment:
Dict mapping the platform names to lists of names of D compilers to try, in order of preference:
from waflib.Tools.compiler_d import d_compiler
d_compiler['default'] = ['gdc', 'dmd', 'ldc2']
Try to find a suitable D compiler or raise a waflib.Errors.ConfigurationError.