Program: name instead of program argument
This commit is contained in:
parent
67ab71ee8d
commit
8a00e0a00d
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ def _register_program(env, name, program):
|
||||||
def _build_program(env):
|
def _build_program(env):
|
||||||
original_builder = env.Program
|
original_builder = env.Program
|
||||||
|
|
||||||
def builder(env, program, sources, local_libs=None, *args, **kwargs):
|
def builder(env, name, sources, local_libs=None, *args, **kwargs):
|
||||||
# local_libs is an array of names of libs built in the local project.
|
# local_libs is an array of names of libs built in the local project.
|
||||||
# These will be looked up in the environment and added to the LIBS
|
# These will be looked up in the environment and added to the LIBS
|
||||||
# array, if present.
|
# array, if present.
|
||||||
|
@ -26,8 +26,8 @@ def _build_program(env):
|
||||||
# kwargs['LIBS'].extend(local_libs)
|
# kwargs['LIBS'].extend(local_libs)
|
||||||
# except KeyError:
|
# except KeyError:
|
||||||
# kwargs['LIBS'] = local_libs
|
# kwargs['LIBS'] = local_libs
|
||||||
prog = original_builder(program, sources, *args, **kwargs)
|
prog = original_builder(name, sources, *args, **kwargs)
|
||||||
register_program(prog)
|
_register_program(env, name, prog)
|
||||||
return prog
|
return prog
|
||||||
|
|
||||||
return builder
|
return builder
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue