0

How do I modify the defaults from the command-line for this multiple option variable:

options = Variables()

options.Add(
    "FLAGS",
    "Compiler Flags.",
    ["-Wall", "-Werror", "-O2"]
)

This fails to do the right thing:

scons FLAGS=-Wall,-Werror

This is scons 1.1.0 and tcsh.

Dan
  • 33,953
  • 24
  • 61
  • 87

1 Answers1

0

Im not sure in which version of SCons these functions were introduced, and it may be possible they arent available in your version, but you can use the ParseFlags() and MergeFlags() to automatically put command line options into their Construction Variables, as mentioned here.

Brady
  • 10,207
  • 2
  • 20
  • 59