Interface CCompiler

All Superinterfaces:
org.gradle.api.Named, org.gradle.api.component.SoftwareComponent
All Known Implementing Classes:
DefaultCCompiler

public interface CCompiler extends org.gradle.api.component.SoftwareComponent
C Compiler extension
  • Nested Class Summary

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

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

    Modifier and Type
    Method
    Description
    boolean
    Flag to enable OpenMP support in all compilation tasks.
    boolean
    Flag to treat warnings as errors in all compilation tasks.
    The Dialect of C that should be used for all compilation tasks.
    User-defined compile options for GCC-compatible toolchains.
    Macros that should be defined for all compilation tasks.
    User-defined compile options for Visual Studio or Visual C++ toolchains.
    boolean
    Flag to suppress all warnings in all compilation tasks.

    Methods inherited from interface org.gradle.api.Named

    getName
  • Method Details

    • getDialect

      CDialect getDialect()
      The Dialect of C that should be used for all compilation tasks.
      Returns:
      The Dialect of C that should be used for all compilation tasks.
    • getMacros

      Map<String,String> getMacros()
      Macros that should be defined for all compilation tasks.
      Returns:
      Macros that should be defined for all compilation tasks.
    • failOnWarning

      boolean failOnWarning()
      Flag to treat warnings as errors in all compilation tasks.
      Returns:
      Flag to treat warnings as errors in all compilation tasks.
    • suppressAllWarnings

      boolean suppressAllWarnings()
      Flag to suppress all warnings in all compilation tasks.
      Returns:
      Flag to suppress all warnings in all compilation tasks.
    • enableOpenMp

      boolean enableOpenMp()
      Flag to enable OpenMP support in all compilation tasks.
      Returns:
      Flag to enable OpenMP support in all compilation tasks.
    • getGccOptions

      List<String> getGccOptions()
      User-defined compile options for GCC-compatible toolchains.
      Returns:
      User-defined compile options for GCC-compatible toolchains.
    • getVisualCppOptions

      List<String> getVisualCppOptions()
      User-defined compile options for Visual Studio or Visual C++ toolchains.
      Returns:
      User-defined compile options for Visual Studio or Visual C++ toolchains.