source: waflib/Tools/compiler_d.py @ 52b5f34

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 52b5f34 was 0fa325b, checked in by Paul Brossier <piem@piem.org>, 11 years ago

waf: unpack

  • Property mode set to 100644
File size: 1009 bytes
Line 
1#! /usr/bin/env python
2# encoding: utf-8
3# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
4
5import os,sys,imp,types
6from waflib import Utils,Configure,Options,Logs
7def configure(conf):
8        for compiler in conf.options.dcheck.split(','):
9                conf.env.stash()
10                conf.start_msg('Checking for %r (d compiler)'%compiler)
11                try:
12                        conf.load(compiler)
13                except conf.errors.ConfigurationError ,e:
14                        conf.env.revert()
15                        conf.end_msg(False)
16                        Logs.debug('compiler_d: %r'%e)
17                else:
18                        if conf.env.D:
19                                conf.end_msg(conf.env.get_flat('D'))
20                                conf.env['COMPILER_D']=compiler
21                                break
22                        conf.end_msg(False)
23        else:
24                conf.fatal('no suitable d compiler was found')
25def options(opt):
26        d_compiler_opts=opt.add_option_group('D Compiler Options')
27        d_compiler_opts.add_option('--check-d-compiler',default='gdc,dmd,ldc2',action='store',help='check for the compiler [Default:gdc,dmd,ldc2]',dest='dcheck')
28        for d_compiler in['gdc','dmd','ldc2']:
29                opt.load('%s'%d_compiler)
Note: See TracBrowser for help on using the repository browser.