Package dev.guillermo.gradle.language.c
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 TypeMethodDescriptionbooleanFlag to enable OpenMP support in all compilation tasks.booleanFlag 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.booleanFlag 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
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
User-defined compile options for GCC-compatible toolchains.- Returns:
- User-defined compile options for GCC-compatible toolchains.
-
getVisualCppOptions
User-defined compile options for Visual Studio or Visual C++ toolchains.- Returns:
- User-defined compile options for Visual Studio or Visual C++ toolchains.
-