Download MAN page
Transcript
The Visual C++ compiler option that SCons uses by default to generate PDB information is /Z7. This works
correctly with parallel (-j) builds because it embeds the debug information in the intermediate object files, as
opposed to sharing a single PDB file between multiple object files. This is also the only way to get debug information embedded into a static library. Using the /Zi instead may yield improved link-time performance, although
parallel builds will no longer work.
You can generate PDB files with the /Zi switch by overriding the default $CCPDBFLAGS variable as follows:
env['CCPDBFLAGS'] = ['${(PDB and "/Zi /Fd%s" % File(PDB)) or ""}']
An alternative would be to use the /Zi to put the debugging information in a separate .pdb file for each object
file by overriding the $CCPDBFLAGS variable as follows:
env['CCPDBFLAGS'] = '/Zi /Fd${TARGET}.pdb'
CCVERSION
The version number of the C compiler. This may or may not be set, depending on the specific C compiler being
used.
CFILESUFFIX
The suffix for C source files. This is used by the internal CFile builder when generating C files from Lex (.l)
or YACC (.y) input files. The default suffix, of course, is .c (lower case). On case-insensitive systems (like
Windows), SCons also treats .C (upper case) files as C files.
CFLAGS
General options that are passed to the C compiler (C only; not C++).
CHANGE_SPECFILE
A hook for modifying the file that controls the packaging build (the .spec for RPM, the control for Ipkg, the
.wxs for MSI). If set, the function will be called after the SCons template for the file has been written. XXX
CHANGED_SOURCES
A reserved variable name that may not be set or used in a construction environment. (See "Variable Substitution,"
below.)
CHANGED_TARGETS
A reserved variable name that may not be set or used in a construction environment. (See "Variable Substitution,"
below.)
CHANGELOG
The name of a file containing the change log text to be included in the package. This is included as the %changelog section of the RPM .spec file.
_concat
A function used to produce variables like $_CPPINCFLAGS. It takes four or five arguments: a prefix to concatenate onto each element, a list of elements, a suffix to concatenate onto each element, an environment for variable
interpolation, and an optional function that will be called to transform the list before concatenation.
env['_CPPINCFLAGS'] = '$( ${_concat(INCPREFIX, CPPPATH, INCSUFFIX, __env__, RDirs)} $)',
CONFIGUREDIR
The name of the directory in which Configure context test files are written. The default is .sconf_temp in the
top-level directory containing the SConstruct file.
99