Class DefaultCCompiler

  • All Implemented Interfaces:
    CCompiler, org.gradle.api.component.SoftwareComponent, org.gradle.api.Named

    public class DefaultCCompiler
    extends java.lang.Object
    implements CCompiler
    Default C compiler.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.gradle.api.Named

        org.gradle.api.Named.Namer
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultCCompiler​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean enableOpenMp()
      Flag to enable OpenMP support in all compilation tasks.
      boolean failOnWarning()
      Flag to treat warnings as errors in all compilation tasks.
      CDialect getDialect()
      The Dialect of C that should be used for all compilation tasks.
      java.util.Map<java.lang.String,​java.lang.String> getMacros()
      Macros that should be defined for all compilation tasks.
      java.lang.String getName()  
      void setDialect​(java.lang.String dialect)  
      void setEnableOpenMp​(boolean enableOpenMp)  
      void setFailOnWarning​(boolean failOnWarning)  
      void setSuppressAllWarnings​(boolean suppressAllWarnings)  
      boolean suppressAllWarnings()
      Flag to suppress all warnings in all compilation tasks.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCCompiler

        @Inject
        public DefaultCCompiler​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.gradle.api.Named
      • getDialect

        public CDialect getDialect()
        Description copied from interface: CCompiler
        The Dialect of C that should be used for all compilation tasks.
        Specified by:
        getDialect in interface CCompiler
        Returns:
        The Dialect of C that should be used for all compilation tasks.
      • setDialect

        public void setDialect​(java.lang.String dialect)
      • getMacros

        public java.util.Map<java.lang.String,​java.lang.String> getMacros()
        Description copied from interface: CCompiler
        Macros that should be defined for all compilation tasks.
        Specified by:
        getMacros in interface CCompiler
        Returns:
        Macros that should be defined for all compilation tasks.
      • failOnWarning

        public boolean failOnWarning()
        Description copied from interface: CCompiler
        Flag to treat warnings as errors in all compilation tasks.
        Specified by:
        failOnWarning in interface CCompiler
        Returns:
        Flag to treat warnings as errors in all compilation tasks.
      • setFailOnWarning

        public void setFailOnWarning​(boolean failOnWarning)
      • suppressAllWarnings

        public boolean suppressAllWarnings()
        Description copied from interface: CCompiler
        Flag to suppress all warnings in all compilation tasks.
        Specified by:
        suppressAllWarnings in interface CCompiler
        Returns:
        Flag to suppress all warnings in all compilation tasks.
      • setSuppressAllWarnings

        public void setSuppressAllWarnings​(boolean suppressAllWarnings)
      • enableOpenMp

        public boolean enableOpenMp()
        Description copied from interface: CCompiler
        Flag to enable OpenMP support in all compilation tasks.
        Specified by:
        enableOpenMp in interface CCompiler
        Returns:
        Flag to enable OpenMP support in all compilation tasks.
      • setEnableOpenMp

        public void setEnableOpenMp​(boolean enableOpenMp)