WAF: make the --run option work again

This commit is contained in:
Gustavo J. A. M. Carneiro
2007-07-05 14:38:39 +01:00
parent 8b7716b380
commit d30f4d66de

View File

@@ -124,10 +124,7 @@ def build(bld):
variant_env = bld.env_of_name(variant_name)
bld.m_allenvs['default'] = variant_env # switch to the active variant
if Params.g_options.run:
run_program(Params.g_options.run)
return
elif Params.g_options.shell:
if Params.g_options.shell:
run_shell()
return
@@ -154,6 +151,9 @@ def shutdown():
if Params.g_options.doxygen:
doxygen()
if Params.g_options.run:
run_program(Params.g_options.run)
def _find_program(program_name):
for obj in Object.g_allobjs:
if obj.target == program_name: