Class GccCCompiler
Adapter for the GCC C/C++ compiler
- Author:
- Adam Murdoch
-
Field Summary
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addImpliedArgs
(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 Object
clone()
void
compile
(CCTask task, File outputDir, String[] sourceFiles, String[] args, String[] endArgs, boolean relentless, CommandLineCompilerConfiguration config, ProgressMonitor monitor) Compiles a source file.protected Parser
createParser
(File source) Create parser to determine dependencies.static GccCCompiler
Gets c++ adapterFile[]
static GccCCompiler
Gets g77 adapterstatic GccCCompiler
Gets gpp adapterRetrieve an identifier that identifies the specific version of the compiler.static GccCCompiler
Gets gcc adapterGets the linker that is associated with this processorsint
Methods inherited from class net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
addIncludePath, addWarningSwitch, getDefineSwitch, getIncludeDirSwitch, getUndefineSwitch
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, createConfiguration, getArgumentCountPerInputFile, getCommand, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, 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:
addImpliedArgs
in classGccCompatibleCCompiler
-
changeEnvironment
public Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env) - Specified by:
changeEnvironment
in interfaceProcessor
- Overrides:
changeEnvironment
in classAbstractProcessor
-
clone
- Overrides:
clone
in classAbstractProcessor
- Throws:
CloneNotSupportedException
-
compile
public void compile(CCTask task, File outputDir, String[] sourceFiles, String[] args, String[] endArgs, boolean relentless, CommandLineCompilerConfiguration config, ProgressMonitor monitor) throws org.apache.tools.ant.BuildException Description copied from class:CommandLineCompiler
Compiles a source file.- Overrides:
compile
in classCommandLineCompiler
- Throws:
org.apache.tools.ant.BuildException
-
createParser
Create parser to determine dependencies. Will create appropriate parser (C++, FORTRAN) based on file extension.- Overrides:
createParser
in classCommandLineCCompiler
-
getEnvironmentIncludePath
- Overrides:
getEnvironmentIncludePath
in classGccCompatibleCCompiler
-
getIdentifier
Description copied from interface:Processor
Retrieve 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:
getIdentifier
in interfaceProcessor
- Overrides:
getIdentifier
in classCommandLineCompiler
- Throws:
org.apache.tools.ant.BuildException
-
getLinker
Description copied from interface:Processor
Gets the linker that is associated with this processors -
getMaximumCommandLength
public int getMaximumCommandLength()- Specified by:
getMaximumCommandLength
in classCommandLineCompiler
-