CompilerOptions

public struct CompilerOptions

Swift compiler options

  • Source files to compile.

    Declaration

    Swift

    public let sources: [URL]
  • Set SDK for the given platform.

    Declaration

    Swift

    public let platform: Platform
  • Specifies directories to framework search path.

    Declaration

    Swift

    public let frameworks: [URL]
  • Specifies sources which should be passed to the linker.

    Declaration

    Swift

    public let linkers: [URL]
  • Specifies directories to library link search path.

    Declaration

    Swift

    public let libs: [URL]
  • Initializes CompilerOptions

    Declaration

    Swift

    public init(sources: [URL], platform: Platform, frameworks: [URL], linkers: [URL], libs: [URL])

    Parameters

    sources

    Source files to compile.

    platform

    Set SDK for the given platform.

    frameworks

    List of the frameworks.

    linkers

    List of the sources which should be passed to the linker.

    libs

    List of the libraries.