swiftCompilerPath
Path of the swiftc
compiler.
var swiftCompilerPath: AbsolutePath { get }
Path of the swiftc
compiler.
var swiftCompilerPath: AbsolutePath { get }
s12PackageModel9ToolchainP17swiftCompilerPath6Basics08AbsoluteF0Vvp
What are these?7QN3V
import PackageModel
protocol Toolchain
struct AbsolutePath
Represents an absolute file system path, independently of what (or whether anything at all) exists at that path in the file system at any given time. An absolute path always starts with a /
character, and holds a normalized string representation. This normalization is strictly syntactic, and does not access the file system in any way.
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 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.