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 7import waflib.Tools.asm # - leave this 8from waflib.Tools import ar 9 10def 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' 20