gas.py 421 B

123456789101112131415161718
  1. #!/usr/bin/env python
  2. # encoding: utf-8
  3. # Thomas Nagy, 2008-2018 (ita)
  4. "Detect as/gas/gcc for compiling assembly files"
  5. import waflib.Tools.asm # - leave this
  6. from waflib.Tools import ar
  7. def configure(conf):
  8. """
  9. Find the programs gas/as/gcc and set the variable *AS*
  10. """
  11. conf.find_program(['gas', 'gcc'], var='AS')
  12. conf.env.AS_TGT_F = ['-c', '-o']
  13. conf.env.ASLNK_TGT_F = ['-o']
  14. conf.find_ar()
  15. conf.load('asm')