waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

gas.py (448B)


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