Table of Contents
| API Documentation: | SwiftCompile |
|---|
Compiles Swift source files into object files.
| Property | Description |
compilerArgs | Additional arguments to provide to the compiler. |
debuggable | Should the compiler generate debuggable code? |
macros | Macros that should be defined for the compiler. |
moduleFile | The location to write the Swift module file to. |
moduleName | The name of the module to produce. |
modules | The modules required to compile the source. |
objectFileDir | The directory where object files will be generated. |
optimized | Should the compiler generate optimized code? |
source | The source files to be compiled. |
sourceCompatibility | The Swift language level to use to compile the source files. |
targetPlatform | The platform being compiled for. |
toolChain | The tool chain used for compilation. |
ListProperty<String> compilerArgs
ListProperty<String>Additional arguments to provide to the compiler.
ListProperty<String> macros
ListProperty<String>Macros that should be defined for the compiler.
Macros do not have values in Swift; they are either present or absent.
RegularFileProperty moduleFile
The location to write the Swift module file to.
ConfigurableFileCollection modules (read-only)
The modules required to compile the source.
DirectoryProperty objectFileDir
The directory where object files will be generated.
ConfigurableFileCollection source (read-only)
The source files to be compiled.
Property<SwiftVersion> sourceCompatibility
Property<SwiftVersion>The Swift language level to use to compile the source files.
Property<NativePlatform> targetPlatform
Property<NativePlatform>The platform being compiled for.
Property<NativeToolChain> toolChain
Property<NativeToolChain>The tool chain used for compilation.