3 # WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
7 # Thomas Nagy, 2008-2016 (ita)
10 Nasm tool (asm processing)
14 import waflib
.Tools
.asm
# leave this
15 from waflib
.TaskGen
import feature
18 def apply_nasm_vars(self
):
19 """provided for compatibility"""
20 self
.env
.append_value('ASFLAGS', self
.to_list(getattr(self
, 'nasm_flags', [])))
24 Detect nasm/yasm and set the variable *AS*
26 conf
.find_program(['nasm', 'yasm'], var
='AS')
27 conf
.env
.AS_TGT_F
= ['-o']
28 conf
.env
.ASLNK_TGT_F
= ['-o']
30 conf
.env
.ASMPATH_ST
= '-I%s' + os
.sep