api / org.gradle.nativeplatform.toolchain / GccCompatibleToolChain

GccCompatibleToolChain

@Incubating interface GccCompatibleToolChain : NativeToolChain

A ToolChain that can handle additional platforms simply by configuring the NativeBinary.

Functions

eachPlatform

abstract fun eachPlatform(action: Action<in GccPlatformToolChain>): Unit

Adds an action that can fine-tune the tool configuration for each platform supported by this tool chain.

getPath

abstract fun getPath(): MutableList<File>

The paths setting required for executing the tool chain. These are used to locate tools for this tool chain, and are prepended to the system PATH when executing these tools.

path

abstract fun path(vararg pathEntries: Any): Unit

Append an entry or entries to the tool chain path.

setTargets

abstract fun setTargets(vararg platformNames: String): Unit

Override the current platform configuration with target platforms specified by name

target

abstract fun target(platformName: String): Unit

Add support for target platform specified by name.

abstract fun target(platformName: String, action: Action<in GccPlatformToolChain>): Unit

Add configuration for a target platform specified by name with additional configuration action.

Inheritors

Clang

interface Clang : GccCompatibleToolChain

The Clang tool chain.

Gcc

interface Gcc : GccCompatibleToolChain

The GNU GCC tool chain.