third_party:waf: update to upstream 2.0.4 release
[samba.git] / third_party / waf / waflib / Tools / gas.py
1 #! /usr/bin/env python
2 # encoding: utf-8
3 # WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
4
5 #!/usr/bin/env python
6 # encoding: utf-8
7 # Thomas Nagy, 2008-2018 (ita)
8
9 "Detect as/gas/gcc for compiling assembly files"
10
11 import waflib.Tools.asm # - leave this
12 from waflib.Tools import ar
13
14 def configure(conf):
15         """
16         Find the programs gas/as/gcc and set the variable *AS*
17         """
18         conf.find_program(['gas', 'gcc'], var='AS')
19         conf.env.AS_TGT_F = ['-c', '-o']
20         conf.env.ASLNK_TGT_F = ['-o']
21         conf.find_ar()
22         conf.load('asm')