public final class GccCCompiler extends GccCompatibleCCompiler
Modifier and Type | Field and Description |
---|---|
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 java.lang.Object |
clone() |
void |
compile(CCTask task,
java.io.File outputDir,
java.lang.String[] sourceFiles,
java.lang.String[] args,
java.lang.String[] endArgs,
boolean relentless,
CommandLineCompilerConfiguration config,
ProgressMonitor monitor)
Compiles a source file.
|
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() |
private void |
supercompile(CCTask task,
java.io.File outputDir,
java.lang.String[] sourceFiles,
java.lang.String[] args,
java.lang.String[] endArgs,
boolean relentless,
CommandLineCompilerConfiguration config,
ProgressMonitor monitor) |
addIncludePath, addWarningSwitch, getDefineSwitch, getIncludeDirSwitch, getUndefineSwitch
addIncludes, buildDefineArguments, createConfiguration, getArgumentCountPerInputFile, getCommand, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
bid, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
private static final java.lang.String[] headerExtensions
private static final java.lang.String[] sourceExtensions
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 java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractProcessor
java.lang.CloneNotSupportedException
public void compile(CCTask task, java.io.File outputDir, java.lang.String[] sourceFiles, java.lang.String[] args, java.lang.String[] endArgs, boolean relentless, CommandLineCompilerConfiguration config, ProgressMonitor monitor) throws org.apache.tools.ant.BuildException
CommandLineCompiler
compile
in class CommandLineCompiler
org.apache.tools.ant.BuildException
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
private void supercompile(CCTask task, java.io.File outputDir, java.lang.String[] sourceFiles, java.lang.String[] args, java.lang.String[] endArgs, boolean relentless, CommandLineCompilerConfiguration config, ProgressMonitor monitor) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException