public final class GccCCompiler extends GccCompatibleCCompiler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CMD_PREFIX |
private static GccCCompiler |
cppInstance |
private static GccCCompiler |
g77Instance |
private static GccCCompiler |
gppInstance |
private static java.lang.String[] |
headerExtensions |
private java.lang.String |
identifier |
private java.io.File[] |
includePath |
private static GccCCompiler |
instance |
private boolean |
isPICMeaningful |
private static java.lang.String[] |
sourceExtensions |
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
Modifier | Constructor and Description |
---|---|
private |
GccCCompiler(java.lang.String command,
java.lang.String[] sourceExtensions,
java.lang.String[] headerExtensions,
boolean isLibtool,
GccCCompiler libtoolCompiler,
boolean newEnvironment,
org.apache.tools.ant.types.Environment env)
Private constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addImpliedArgs(java.util.Vector args,
boolean debug,
boolean multithreaded,
boolean exceptions,
LinkType linkType,
java.lang.Boolean rtti,
OptimizationEnum optimization) |
Processor |
changeEnvironment(boolean newEnvironment,
org.apache.tools.ant.types.Environment env) |
protected Parser |
createParser(java.io.File source)
Create parser to determine dependencies.
|
static GccCCompiler |
getCppInstance()
Gets c++ adapter
|
java.io.File[] |
getEnvironmentIncludePath() |
static GccCCompiler |
getG77Instance()
Gets g77 adapter
|
static GccCCompiler |
getGppInstance()
Gets gpp adapter
|
java.lang.String |
getIdentifier()
Retrieve an identifier that identifies the specific version of the
compiler.
|
static GccCCompiler |
getInstance()
Gets gcc adapter
|
Linker |
getLinker(LinkType linkType)
Gets the linker that is associated with this processors
|
int |
getMaximumCommandLength() |
addIncludePath, addWarningSwitch, getDefineSwitch, getIncludeDirSwitch, getUndefineSwitch
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
private static final java.lang.String[] sourceExtensions
private static final java.lang.String[] headerExtensions
public static final java.lang.String CMD_PREFIX
private static final GccCCompiler cppInstance
private static final GccCCompiler g77Instance
private static final GccCCompiler gppInstance
private static final GccCCompiler instance
private java.lang.String identifier
private java.io.File[] includePath
private boolean isPICMeaningful
private GccCCompiler(java.lang.String command, java.lang.String[] sourceExtensions, java.lang.String[] headerExtensions, boolean isLibtool, GccCCompiler libtoolCompiler, boolean newEnvironment, org.apache.tools.ant.types.Environment env)
public static GccCCompiler getCppInstance()
public static GccCCompiler getG77Instance()
public static GccCCompiler getGppInstance()
public static GccCCompiler getInstance()
public void addImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, java.lang.Boolean rtti, OptimizationEnum optimization)
addImpliedArgs
in class GccCompatibleCCompiler
public Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env)
changeEnvironment
in interface Processor
changeEnvironment
in class AbstractProcessor
protected Parser createParser(java.io.File source)
createParser
in class CommandLineCCompiler
public java.io.File[] getEnvironmentIncludePath()
getEnvironmentIncludePath
in class GccCompatibleCCompiler
public java.lang.String getIdentifier() throws org.apache.tools.ant.BuildException
Processor
getIdentifier
in interface Processor
getIdentifier
in class CommandLineCompiler
org.apache.tools.ant.BuildException
public Linker getLinker(LinkType linkType)
Processor
public int getMaximumCommandLength()
getMaximumCommandLength
in class CommandLineCompiler