Commits

Anonymous committed 2718967

Added defines for asm - #1442

  • Participants
  • Parent commits 1301e58

Comments (0)

Files changed (2)

demos/asm/wscript

 	bld.program(
 		source   = 'main.c test.S',
 		target   = 'asmtest',
+		defines  = 'foo=12',
 		includes = '.')
 
 	def disp(ctx):

waflib/Tools/asm.py

 	Compile asm files by gas/nasm/yasm/...
 	"""
 	color = 'BLUE'
-	run_str = '${AS} ${ASFLAGS} ${ASMPATH_ST:INCPATHS} ${AS_SRC_F}${SRC} ${AS_TGT_F}${TGT}'
+	run_str = '${AS} ${ASFLAGS} ${ASMPATH_ST:INCPATHS} ${DEFINES_ST:DEFINES} ${AS_SRC_F}${SRC} ${AS_TGT_F}${TGT}'
 
 @extension('.s', '.S', '.asm', '.ASM', '.spp', '.SPP')
 def asm_hook(self, node):