Changeset c101fe1 for waflib/Tools/c_config.py
- Timestamp:
- Nov 13, 2013, 1:00:56 PM (10 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waflib/Tools/c_config.py
r54e74f0 rc101fe1 600 600 if out.find('__INTEL_COMPILER')>=0: 601 601 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: 603 603 conf.fatal('Could not determine the compiler type') 604 604 if icc and out.find('__INTEL_COMPILER')<0: … … 630 630 if isD('__ELF__'): 631 631 conf.env.DEST_BINFMT='elf' 632 elif isD('__WINNT__')or isD('__CYGWIN__') :632 elif isD('__WINNT__')or isD('__CYGWIN__')or isD('_WIN32'): 633 633 conf.env.DEST_BINFMT='pe' 634 conf.env.LIBDIR=conf.env ['PREFIX']+'/bin'634 conf.env.LIBDIR=conf.env.BINDIR 635 635 elif isD('__APPLE__'): 636 636 conf.env.DEST_BINFMT='mac-o' … … 667 667 else: 668 668 conf.fatal('Could not determine the XLC version.') 669 @conf 670 def 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.') 669 685 @conf 670 686 def add_as_needed(self):
Note: See TracChangeset
for help on using the changeset viewer.