Ignore:
Timestamp:
Nov 13, 2013, 1:00:56 PM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
d3066e2
Parents:
54e74f0
Message:

waf, waflib: update to 1.7.13

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waflib/Tools/c_config.py

    r54e74f0 rc101fe1  
    600600                if out.find('__INTEL_COMPILER')>=0:
    601601                        conf.fatal('The intel compiler pretends to be gcc')
    602                 if out.find('__GNUC__')<0:
     602                if out.find('__GNUC__')<0 and out.find('__clang__')<0:
    603603                        conf.fatal('Could not determine the compiler type')
    604604        if icc and out.find('__INTEL_COMPILER')<0:
     
    630630                if isD('__ELF__'):
    631631                        conf.env.DEST_BINFMT='elf'
    632                 elif isD('__WINNT__')or isD('__CYGWIN__'):
     632                elif isD('__WINNT__')or isD('__CYGWIN__')or isD('_WIN32'):
    633633                        conf.env.DEST_BINFMT='pe'
    634                         conf.env.LIBDIR=conf.env['PREFIX']+'/bin'
     634                        conf.env.LIBDIR=conf.env.BINDIR
    635635                elif isD('__APPLE__'):
    636636                        conf.env.DEST_BINFMT='mac-o'
     
    667667        else:
    668668                conf.fatal('Could not determine the XLC version.')
     669@conf
     670def get_suncc_version(conf,cc):
     671        cmd=cc+['-V']
     672        try:
     673                out,err=conf.cmd_and_log(cmd,output=0)
     674        except Errors.WafError:
     675                conf.fatal('Could not find suncc %r'%cmd)
     676        version=(out or err)
     677        version=version.split('\n')[0]
     678        version_re=re.compile(r'cc:\s+sun\s+(c\+\+|c)\s+(?P<major>\d*)\.(?P<minor>\d*)',re.I).search
     679        match=version_re(version)
     680        if match:
     681                k=match.groupdict()
     682                conf.env['CC_VERSION']=(k['major'],k['minor'])
     683        else:
     684                conf.fatal('Could not determine the suncc version.')
    669685@conf
    670686def add_as_needed(self):
Note: See TracChangeset for help on using the changeset viewer.