Search in sources :

Example 1 with DefaultCompilerVersion

use of org.gradle.language.base.internal.compile.DefaultCompilerVersion in project gradle by gradle.

the class SwiftPlatformToolProvider method createLinker.

@Override
protected Compiler<LinkerSpec> createLinker() {
    CommandLineToolConfigurationInternal linkerTool = (CommandLineToolConfigurationInternal) toolRegistry.getLinker();
    SwiftLinker swiftLinker = new SwiftLinker(buildOperationExecutor, commandLineTool(ToolType.LINKER, "swiftc"), context(linkerTool), workerLeaseService);
    return new VersionAwareCompiler<LinkerSpec>(swiftLinker, new DefaultCompilerVersion("swiftc", swiftcMetaData.getVendor(), swiftcMetaData.getVersion()));
}
Also used : DefaultCompilerVersion(org.gradle.language.base.internal.compile.DefaultCompilerVersion) VersionAwareCompiler(org.gradle.language.base.internal.compile.VersionAwareCompiler) CommandLineToolConfigurationInternal(org.gradle.nativeplatform.toolchain.internal.tools.CommandLineToolConfigurationInternal)

Example 2 with DefaultCompilerVersion

use of org.gradle.language.base.internal.compile.DefaultCompilerVersion in project gradle by gradle.

the class SwiftPlatformToolProvider method createSwiftCompiler.

protected Compiler<SwiftCompileSpec> createSwiftCompiler() {
    CommandLineToolConfigurationInternal swiftCompilerTool = (CommandLineToolConfigurationInternal) toolRegistry.getSwiftCompiler();
    SwiftCompiler swiftCompiler = new SwiftCompiler(buildOperationExecutor, compilerOutputFileNamingSchemeFactory, commandLineTool(ToolType.SWIFT_COMPILER, "swiftc"), context(swiftCompilerTool), getObjectFileExtension(), workerLeaseService, swiftcMetaData.getVersion());
    return new VersionAwareCompiler<SwiftCompileSpec>(swiftCompiler, new DefaultCompilerVersion("swiftc", swiftcMetaData.getVendor(), swiftcMetaData.getVersion()));
}
Also used : DefaultCompilerVersion(org.gradle.language.base.internal.compile.DefaultCompilerVersion) VersionAwareCompiler(org.gradle.language.base.internal.compile.VersionAwareCompiler) CommandLineToolConfigurationInternal(org.gradle.nativeplatform.toolchain.internal.tools.CommandLineToolConfigurationInternal)

Aggregations

DefaultCompilerVersion (org.gradle.language.base.internal.compile.DefaultCompilerVersion)2 VersionAwareCompiler (org.gradle.language.base.internal.compile.VersionAwareCompiler)2 CommandLineToolConfigurationInternal (org.gradle.nativeplatform.toolchain.internal.tools.CommandLineToolConfigurationInternal)2