123456789101112131415161718192021222324252627 |
- import sys
- def configure(conf):
- conf.load('gcc gas')
- try:
- size = sys.maxint
- except AttributeError:
- size = sys.maxsize
- if size < 4**21:
- conf.fatal('this example is for 64-bit systems only')
- def build(bld):
-
- bld.program(
- source = 'main.c test.S',
- target = 'asmtest',
- defines = 'foo=12',
- 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)
|