scons: Remember the options set on the command line.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 17 Jun 2011 19:11:35 +0000 (20:11 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 17 Jun 2011 19:13:16 +0000 (20:13 +0100)
Save them in config.py

SConstruct

index 104cc38aa638a33e767252a1fc770476a611d901..6b725c4b6959a7f994ff1a5327cd2bfbb304195a 100644 (file)
@@ -40,6 +40,8 @@ env = Environment(
        ENV = os.environ,
 )
 
+opts.Save('config.py', env)
+
 # Backwards compatability with old target configuration variable
 try:
     targets = ARGUMENTS['targets']