Class GccCCompiler
Adapter for the GCC C/C++ compiler
- Author:
- Adam Murdoch
-
Field Summary
Fields inherited from class AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID -
Method Summary
Modifier and TypeMethodDescriptionvoidaddImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization) changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env) protected ParsercreateParser(File source) Create parser to determine dependencies.static GccCCompilerGets c++ adapterFile[]static GccCCompilerGets g77 adapterstatic GccCCompilerGets gpp adapterRetrieve an identifier that identifies the specific version of the compiler.static GccCCompilerGets gcc adapterGets the linker that is associated with this processorsintMethods inherited from class GccCompatibleCCompiler
addIncludePath, addWarningSwitch, getDefineSwitch, getIncludeDirSwitch, getUndefineSwitchMethods inherited from class CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommandMethods inherited from class AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveIncludeMethods inherited from class AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
Method Details
-
getCppInstance
Gets c++ adapter -
getG77Instance
Gets g77 adapter -
getGppInstance
Gets gpp adapter -
getInstance
Gets gcc adapter -
addImpliedArgs
public void addImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization) - Overrides:
addImpliedArgsin classGccCompatibleCCompiler
-
changeEnvironment
public Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env) - Specified by:
changeEnvironmentin interfaceProcessor- Overrides:
changeEnvironmentin classAbstractProcessor
-
createParser
Create parser to determine dependencies. Will create appropriate parser (C++, FORTRAN) based on file extension.- Overrides:
createParserin classCommandLineCCompiler
-
getEnvironmentIncludePath
- Overrides:
getEnvironmentIncludePathin classGccCompatibleCCompiler
-
getIdentifier
Description copied from interface:ProcessorRetrieve an identifier that identifies the specific version of the compiler. Compilers with the same identifier should produce the same output files for the same input files and command line switches.- Specified by:
getIdentifierin interfaceProcessor- Overrides:
getIdentifierin classCommandLineCompiler- Throws:
org.apache.tools.ant.BuildException
-
getLinker
-
getMaximumCommandLength
public int getMaximumCommandLength()- Specified by:
getMaximumCommandLengthin classCommandLineCompiler
-