SCons: Make --help reflect the arguments to scons.
The arguments were added to the global_sticky_vars Variables object after the basic help text was generated. As a result, the "actual:" value wouldn't reflect the arguments to scons and wouldn't really be the "actual" value used by the build. This change fixes that by updating global_sticky_vars slightly earlier.
This commit is contained in:
parent
4f4e6fc099
commit
de904a6d39
1 changed files with 2 additions and 2 deletions
|
@ -324,11 +324,11 @@ Usage: scons [scons options] [build options] [target(s)]
|
||||||
Global sticky options:
|
Global sticky options:
|
||||||
'''
|
'''
|
||||||
|
|
||||||
help_text += global_sticky_vars.GenerateHelpText(main)
|
|
||||||
|
|
||||||
# Update main environment with values from ARGUMENTS & global_sticky_vars_file
|
# Update main environment with values from ARGUMENTS & global_sticky_vars_file
|
||||||
global_sticky_vars.Update(main)
|
global_sticky_vars.Update(main)
|
||||||
|
|
||||||
|
help_text += global_sticky_vars.GenerateHelpText(main)
|
||||||
|
|
||||||
# Save sticky variable settings back to current variables file
|
# Save sticky variable settings back to current variables file
|
||||||
global_sticky_vars.Save(global_sticky_vars_file, main)
|
global_sticky_vars.Save(global_sticky_vars_file, main)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue