api / org.gradle.platform.base / ToolChainRegistry

ToolChainRegistry

@Incubating interface ToolChainRegistry<P : Platform, T : ToolChain>

A Provider of ToolChains.

Parameters

- the Platform type

- the ToolChain type

Functions

getForPlatform

abstract fun getForPlatform(targetPlatform: P): T

Returns the best tool chain to build for the target platform.

Inheritors

JavaToolChainRegistry

interface JavaToolChainRegistry : ToolChainRegistry<JavaPlatform, JavaToolChain>

A container for JavaToolChains.

NativeToolChainRegistry

interface NativeToolChainRegistry : ExtensiblePolymorphicDomainObjectContainer<NativeToolChain>, ToolChainRegistry<NativePlatform, NativeToolChain>

A container for NativeToolChains.