Class GccCCompiler
java.lang.Object
net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
net.sf.antcontrib.cpptasks.compiler.CommandLineCCompiler
net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccCCompiler
Adapter for the GCC C/C++ compiler
- Author:
- Adam Murdoch
-
Field Summary
FieldsFields inherited from class net.sf.antcontrib.cpptasks.compiler.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 net.sf.antcontrib.cpptasks.gcc.GccCompatibleCCompiler
addIncludePath, addWarningSwitch, getDefineSwitch, getIncludeDirSwitch, getUndefineSwitchMethods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommandMethods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveIncludeMethods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
Field Details
-
CMD_PREFIX
- See Also:
-
-
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
Description copied from interface:ProcessorGets the linker that is associated with this processors -
getMaximumCommandLength
public int getMaximumCommandLength()- Specified by:
getMaximumCommandLengthin classCommandLineCompiler
-