csbuild.toolchain_gcc module

Contains a plugin class for interfacing with GCC

class csbuild.toolchain_gcc.compiler_gcc

Bases: csbuild.toolchain_gcc.gccBase, csbuild.toolchain.compilerBase

AddWarnFlags(*args)

Sets warn flags to be passed to the compiler.

Parameters:args (an arbitrary number of strings) – List of flags
ClearWarnFlags()

Clears the list of warning flags

GetBaseCcCommand(project)
GetBaseCcPrecompileCommand(project)
GetBaseCxxCommand(project)
GetBaseCxxPrecompileCommand(project)
GetExtendedCommand(baseCmd, project, forceIncludeFile, outObj, inFile)
GetExtendedPrecompileCommand(baseCmd, project, forceIncludeFile, outObj, inFile)
GetExtraPostPreprocessorFlags()
GetObjExt()
GetPchFile(fileName)
GetPostPreprocessorSanitationLines()
GetPreprocessCommand(baseCmd, project, inFile)
InterruptExitCode()
PragmaMessage(message)
SetCStandard(s)

The C/C++ standard to be used when compiling. Possible values are C99, C11, etc.

Parameters:s (str) – The standard to use
SetCppStandard(s)

The C/C++ standard to be used when compiling. Possible values are C++03, C++-11, etc.

Parameters:s (str) – The standard to use
copy()
class csbuild.toolchain_gcc.gccBase

Bases: object

GetValidArchitectures()
SetObjcAbiVersion(version)
class csbuild.toolchain_gcc.linker_gcc

Bases: csbuild.toolchain_gcc.gccBase, csbuild.toolchain.linkerBase

DisableStrictOrdering()

Use –start-group/–end-group to eliminate the need to strictly order libraries when linking. This is the default behavior.

EnableStrictOrdering()

By default, csbuild uses –start-group and –end-group to eliminate GCC’s requirements of strictly managed link order. This comes with a performance cost when linking, however, so if you would prefer to manage your link order manually, this function will disable csbuild’s default –start-group/–end-group behavior.

FindLibrary(project, library, libraryDirs, force_static, force_shared)
GetDefaultOutputExtension(projectType)
GetLinkCommand(project, outputFile, objList)
InterruptExitCode()
copy()

This Page