Class DefaultCCompiler
- java.lang.Object
-
- dev.guillermo.gradle.language.c.internal.DefaultCCompiler
-
-
Constructor Summary
Constructors Constructor Description DefaultCCompiler(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanenableOpenMp()Flag to enable OpenMP support in all compilation tasks.booleanfailOnWarning()Flag to treat warnings as errors in all compilation tasks.CDialectgetDialect()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.StringgetName()voidsetDialect(java.lang.String dialect)voidsetEnableOpenMp(boolean enableOpenMp)voidsetFailOnWarning(boolean failOnWarning)voidsetSuppressAllWarnings(boolean suppressAllWarnings)booleansuppressAllWarnings()Flag to suppress all warnings in all compilation tasks.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceorg.gradle.api.Named
-
getDialect
public CDialect getDialect()
Description copied from interface:CCompilerThe Dialect of C that should be used for all compilation tasks.- Specified by:
getDialectin interfaceCCompiler- 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:CCompilerMacros that should be defined for all compilation tasks.
-
failOnWarning
public boolean failOnWarning()
Description copied from interface:CCompilerFlag to treat warnings as errors in all compilation tasks.- Specified by:
failOnWarningin interfaceCCompiler- 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:CCompilerFlag to suppress all warnings in all compilation tasks.- Specified by:
suppressAllWarningsin interfaceCCompiler- Returns:
- Flag to suppress all warnings in all compilation tasks.
-
setSuppressAllWarnings
public void setSuppressAllWarnings(boolean suppressAllWarnings)
-
enableOpenMp
public boolean enableOpenMp()
Description copied from interface:CCompilerFlag to enable OpenMP support in all compilation tasks.- Specified by:
enableOpenMpin interfaceCCompiler- Returns:
- Flag to enable OpenMP support in all compilation tasks.
-
setEnableOpenMp
public void setEnableOpenMp(boolean enableOpenMp)
-
-