Toolchain
Toolchain.swift:15protocol Toolchain
Browse conforming typesprotocol Toolchain
import PackageModel
var extraFlags: BuildFlags { get }
Additional flags to be passed to the build tools.
var includeSearchPaths: [AbsolutePath] { get }
An array of paths to search for headers and modules at compile time.
var installedSwiftPMConfiguration: InstalledSwiftPMConfiguration { get }
Configuration from the used toolchain.
var librarianPath: AbsolutePath { get }
Path of the librarian.
var librarySearchPaths: [AbsolutePath] { get }
An array of paths to search for libraries at link time.
var macosSwiftStdlib: AbsolutePath { get throws }
Path containing the macOS Swift stdlib.
var sdkRootPath: AbsolutePath? { get }
The root path to the Swift SDK used by this toolchain.
var swiftCompilerPath: AbsolutePath { get }
Path of the swiftc
compiler.
var swiftResourcesPath: AbsolutePath? { get }
Path to lib/swift
var swiftStaticResourcesPath: AbsolutePath? { get }
Path to lib/swift_static
func _isClangCompilerVendorApple() throws -> Bool?
Returns true if clang compiler’s vendor is Apple and nil if unknown.
func getClangCompiler() throws -> AbsolutePath
Path of the clang
compiler.
var extraCCFlags: [String] { get }
Additional flags to be passed to the C compiler.
var extraCPPFlags: [String] { get }
Additional flags to be passed to the C++ compiler.
var extraSwiftCFlags: [String] { get }
Additional flags to be passed to the Swift compiler.
static func toolchainLibDir(swiftCompilerPath: AbsolutePath) throws -> AbsolutePath
var extraCCFlags: [String] { get }
var extraCPPFlags: [String] { get }
var extraSwiftCFlags: [String] { get }
var hostLibDir: AbsolutePath { get throws }
var macosSwiftStdlib: AbsolutePath { get throws }
var toolchainLibDir: AbsolutePath { get throws }
func _isClangCompilerVendorApple() throws -> Bool?
func swiftResourcesPath(isStatic: Bool) -> AbsolutePath?
Returns the appropriate Swift resources directory path.