diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-03-01 03:00:42 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-03-01 03:00:42 -0800 |
commit | 9e608a6ad7a965a08798ba25822b5da7cd17d7a0 (patch) | |
tree | 039e4f078991bce00f61e28d4c682d51132fb172 /SConstruct | |
parent | 993e83ef805aaecb0d9483b23f3ce50ba0ce06dd (diff) | |
download | gem5-9e608a6ad7a965a08798ba25822b5da7cd17d7a0.tar.xz |
SCons: Separately label the global non-sticky options.
The global sticky options were being printed with a heading, and then the
global nonsticky options were being printed immediately after them without a
heading. Because the two lists ran together and the first had its own heading,
it looked like -all- those options where sticky even though some of them
aren't. This change adds a label to the second list so it's clear they're
different.
Diffstat (limited to 'SConstruct')
-rwxr-xr-x | SConstruct | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/SConstruct b/SConstruct index 9bfd1d1c8..d33f5082e 100755 --- a/SConstruct +++ b/SConstruct @@ -338,20 +338,23 @@ global_nonsticky_vars.AddVariables( ('update_ref', 'Update test reference outputs', False) ) +# Update main environment with values from ARGUMENTS & global_sticky_vars_file +global_sticky_vars.Update(main) +global_nonsticky_vars.Update(main) +global_help_texts = { + "global_sticky" : global_sticky_vars.GenerateHelpText(main), + "global_nonsticky" : global_nonsticky_vars.GenerateHelpText(main) +} # base help text help_text = ''' Usage: scons [scons options] [build options] [target(s)] Global sticky options: -''' - -# Update main environment with values from ARGUMENTS & global_sticky_vars_file -global_sticky_vars.Update(main) -global_nonsticky_vars.Update(main) - -help_text += global_sticky_vars.GenerateHelpText(main) -help_text += global_nonsticky_vars.GenerateHelpText(main) +%(global_sticky)s +Global nonsticky options: +%(global_nonsticky)s +''' % global_help_texts # Save sticky variable settings back to current variables file global_sticky_vars.Save(global_sticky_vars_file, main) |