You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mats Wichmann edited this page Nov 7, 2019
·
3 revisions
IMPORTANT NOTE: OUTDATED
Recent versions of scons (>=0.08) know about nasm, so it is very likely that this item is not useful for nasm anymore However, the code can be applied to other tools
Here is an example of a nasm files builder (nasm is the netwide assembler):
nasm_builder=Builder(name='Nasm', action='nasm -f elf -o $TARGET $SOURCE', src_suffix='.nasm')
nasm_env=Environment(BUILDERS= [nasm_builder])
# BUILDERS now takes a dictionary, not an array, this must be outdatednasm_files='unix/snapvector unix/ftol'nasm_objs= [ nasm_env.Nasm(target=x+'.o', source=x+'.nasm') forxinnasm_files.split() ]
env.Program(target='spam', source=source_list+nasm_objs)