armccompiler.py 962 B

1234567891011121314151617181920212223242526
  1. from distutils.unixccompiler import UnixCCompiler
  2. class ArmCCompiler(UnixCCompiler):
  3. """
  4. Arm compiler.
  5. """
  6. compiler_type = 'arm'
  7. cc_exe = 'armclang'
  8. cxx_exe = 'armclang++'
  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. ' -O3 -fPIC',
  15. compiler_so=cc_compiler +
  16. ' -O3 -fPIC',
  17. compiler_cxx=cxx_compiler +
  18. ' -O3 -fPIC',
  19. linker_exe=cc_compiler +
  20. ' -lamath',
  21. linker_so=cc_compiler +
  22. ' -lamath -shared')