mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
Use ASMPATH_ST for for assembler includes.
This commit is contained in:
parent
2a95fc745d
commit
cf4a6abbd2
@ -45,7 +45,7 @@ class asm(Task.Task):
|
||||
Compile asm files by gas/nasm/yasm/...
|
||||
"""
|
||||
color = 'BLUE'
|
||||
run_str = '${AS} ${ASFLAGS} ${CPPPATH_ST:INCPATHS} ${AS_SRC_F}${SRC} ${AS_TGT_F}${TGT}'
|
||||
run_str = '${AS} ${ASFLAGS} ${ASMPATH_ST:INCPATHS} ${AS_SRC_F}${SRC} ${AS_TGT_F}${TGT}'
|
||||
|
||||
@extension('.s', '.S', '.asm', '.ASM', '.spp', '.SPP')
|
||||
def asm_hook(self, node):
|
||||
@ -71,3 +71,5 @@ class asmstlib(stlink_task):
|
||||
"Link object files into a c static library"
|
||||
pass # do not remove
|
||||
|
||||
def configure(conf):
|
||||
conf.env['ASMPATH_ST'] = '-I%s'
|
||||
|
@ -15,3 +15,4 @@ def configure(conf):
|
||||
conf.env.AS_TGT_F = ['-c', '-o']
|
||||
conf.env.ASLNK_TGT_F = ['-o']
|
||||
conf.find_ar()
|
||||
conf.load('asm')
|
||||
|
@ -21,3 +21,4 @@ def configure(conf):
|
||||
nasm = conf.find_program(['nasm', 'yasm'], var='AS')
|
||||
conf.env.AS_TGT_F = ['-o']
|
||||
conf.env.ASLNK_TGT_F = ['-o']
|
||||
conf.load('asm')
|
||||
|
Loading…
Reference in New Issue
Block a user