pathccompiler.py 713 B

123456789101112131415161718192021
  1. from distutils.unixccompiler import UnixCCompiler
  2. class PathScaleCCompiler(UnixCCompiler):
  3. """
  4. PathScale compiler compatible with an gcc built Python.
  5. """
  6. compiler_type = 'pathcc'
  7. cc_exe = 'pathcc'
  8. cxx_exe = 'pathCC'
  9. def __init__ (self, verbose=0, dry_run=0, force=0):
  10. UnixCCompiler.__init__ (self, verbose, dry_run, force)
  11. cc_compiler = self.cc_exe
  12. cxx_compiler = self.cxx_exe
  13. self.set_executables(compiler=cc_compiler,
  14. compiler_so=cc_compiler,
  15. compiler_cxx=cxx_compiler,
  16. linker_exe=cc_compiler,
  17. linker_so=cc_compiler + ' -shared')