Class GccCCompiler

    • Field Detail

      • headerExtensions

        private static final java.lang.String[] headerExtensions
      • sourceExtensions

        private static final java.lang.String[] sourceExtensions
      • cppInstance

        private static final GccCCompiler cppInstance
      • g77Instance

        private static final GccCCompiler g77Instance
      • gppInstance

        private static final GccCCompiler gppInstance
      • identifier

        private java.lang.String identifier
      • includePath

        private java.io.File[] includePath
      • isPICMeaningful

        private boolean isPICMeaningful
    • Constructor Detail

      • GccCCompiler

        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. Use GccCCompiler.getInstance() to get singleton instance of this class.
    • Method Detail

      • getCppInstance

        public static GccCCompiler getCppInstance()
        Gets c++ adapter
      • getG77Instance

        public static GccCCompiler getG77Instance()
        Gets g77 adapter
      • getGppInstance

        public static GccCCompiler getGppInstance()
        Gets gpp adapter
      • getInstance

        public static GccCCompiler getInstance()
        Gets gcc adapter
      • clone

        protected java.lang.Object clone()
                                  throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class AbstractProcessor
        Throws:
        java.lang.CloneNotSupportedException
      • createParser

        protected Parser createParser​(java.io.File source)
        Create parser to determine dependencies. Will create appropriate parser (C++, FORTRAN) based on file extension.
        Overrides:
        createParser in class CommandLineCCompiler
      • getIdentifier

        public java.lang.String getIdentifier()
                                       throws org.apache.tools.ant.BuildException
        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 interface Processor
        Overrides:
        getIdentifier in class CommandLineCompiler
        Throws:
        org.apache.tools.ant.BuildException
      • getLinker

        public Linker getLinker​(LinkType linkType)
        Description copied from interface: Processor
        Gets the linker that is associated with this processors
      • supercompile

        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
        Throws:
        org.apache.tools.ant.BuildException