If you execute SCons with no command line targets, then the release version will be built, as specified by the envRelease.Default() function. TargetDebug = envDebug.Program(target = 'helloWorldDebug', source = '') # This makes the release target the default TargetRelease = envRelease.Program(target = 'helloWorld', source = '') To use targets, you could do something like this: envRelease = Environment() This can be done with command line targets or command line options (like debug=1) To get the executable in debug mode, its just a simple matter of adding the appropriate compiler debug flags to the CXXFLAGS construction variable, as follows: env = Environment()īut this is rather basic, and I imagine you would want to be able to control when the executable is compiled in debug mode via the command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |