waf/demos/asm/wscript

23 lines
500 B
Python

#! /usr/bin/env python
# encoding: utf-8
import sys
def configure(conf):
conf.load('gcc gas')
if sys.maxint < 4**21:
conf.fatal('this example is for 64-bit systems only')
def build(bld):
# http://docs.waf.googlecode.com/git/apidocs_16/tools/asm.html
bld.program(
source = 'main.c test.S',
target = 'asmtest',
includes = '.')
def disp(ctx):
node = ctx.bldnode.ant_glob('asmtest*', remove=False)[0]
ctx.exec_command('%s' % node.abspath(), shell=False)
bld.add_post_fun(disp)