fujitsuccompiler.py 834 B

12345678910111213141516171819202122232425262728
  1. from distutils.unixccompiler import UnixCCompiler
  2. class FujitsuCCompiler(UnixCCompiler):
  3. """
  4. Fujitsu compiler.
  5. """
  6. compiler_type = 'fujitsu'
  7. cc_exe = 'fcc'
  8. cxx_exe = 'FCC'
  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(
  14. compiler=cc_compiler +
  15. ' -O3 -Nclang -fPIC',
  16. compiler_so=cc_compiler +
  17. ' -O3 -Nclang -fPIC',
  18. compiler_cxx=cxx_compiler +
  19. ' -O3 -Nclang -fPIC',
  20. linker_exe=cc_compiler +
  21. ' -lfj90i -lfj90f -lfjsrcinfo -lelf -shared',
  22. linker_so=cc_compiler +
  23. ' -lfj90i -lfj90f -lfjsrcinfo -lelf -shared'
  24. )