--help,-h,-help | Show help information |
--version | Show the version |
-access-notes-path <command> | Specify YAML file to override attributes on Swift declarations in this module |
-assert-config <command> | Specify the assert_configuration replacement |
-clang-target <command> | Separately set the target we should use for internal Clang instance |
-color-diagnostics | Print diagnostics in color |
-continue-building-after-errors | Continue building, even after errors are encountered |
-coverage-prefix-map <command> | Remap source paths in coverage info |
-debug-info-format <command> | Specify the debug info format type |
-debug-info-store-invocation | Emit the compiler invocation in the debug info |
-debug-prefix-map <command> | Remap source paths in debug info |
-diagnostic-style <command> | The formatting style used when printing diagnostics |
-disable-autolinking-runtime-compatibility-concurrency | Do not use autolinking for the concurrency runtime compatibility library |
-disable-autolinking-runtime-compatibility-dynamic-replacements | Do not use autolinking for the dynamic replacement runtime compatibility library |
-disable-autolinking-runtime-compatibility | Do not use autolinking for runtime compatibility libraries |
-disable-clang-target | Disable a separately specified target triple for Clang instance to use |
-disable-incremental-imports | Disable cross-module incremental build metadata and driver scheduling for Swift modules |
-disable-only-one-dependency-file | Disables incremental build optimization that only produces one dependencies file |
-disallow-use-new-driver | Disable using new swift-driver |
-D <command> | Marks a conditional compilation flag as true |
-embed-tbd-for-module <command> | Embed symbols from the module in the emitted tbd file |
-enable-experimental-additive-arithmetic-derivation | Enable experimental 'AdditiveArithmetic' derived conformances |
-enable-experimental-concise-pound-file | Enable experimental concise '#file' identifier |
-enable-experimental-cxx-interop | Allow importing C++ modules into Swift (experimental feature) |
-enable-experimental-forward-mode-differentiation | Enable experimental forward mode differentiation |
-enable-incremental-imports | Enable cross-module incremental build metadata and driver scheduling for Swift modules |
-enable-library-evolution | Build the module to allow binary-compatible library evolution |
-enable-only-one-dependency-file | Enables incremental build optimization that only produces one dependencies file |
-enforce-exclusivity <command> | Enforce law of exclusivity |
-experimental-cxx-stdlib <command> | C++ standard library to use; forwarded to Clang's -std lib flag |
-framework <command> | Specifies a framework which should be linked against |
-Fsystem <command> | Add directory to system framework search path |
-F <command> | Add directory to framework search path |
-gdwarf-types | Emit full DWARF type info |
-gline-tables-only | Emit minimal debug info for backtraces only |
-gnone | Don't emit debug info |
-g | Emit debug info. This is the preferred setting for debugging with LLDB |
-index-store-path <command> | Store indexing data to path |
-index-unit-output-path <command> | Use the specified path as the output path in the produced index data |
-I <command> | Add directory to the import search path |
-j <command> | Number of commands to execute in parallel |
-libc <command> | The libc runtime library to use |
-locale <command> | Choose a language for diagnostic messages |
-localization-path <command> | Path to localized diagnostic messages directory |
-L <command> | Add directory to library link search path |
-l <command> | Specifies a library which should be linked against |
-module-abi-name <command> | ABI name to use for the contents of this module |
-module-cache-path <command> | Specifies the Clang module cache path |
-module-link-name <command> | Library to link against when using this module |
-module-name <command> | Name of the module to build |
-no-color-diagnostics | Do not print diagnostics in color |
-no-warnings-as-errors | Don't treat warnings as error |
-nostdimport | Don't search the standard library import path for modules |
-num-threads <command> | Enable multi-threading and specify number of threads |
-Onone | Compile without any optimization |
-Osize | Compile with optimizations and target small code size |
-Ounchecked | Compile with optimizations and remove runtime safety checks |
-O | Compile with optimizations |
-pretty-print | Pretty-print the output JSON |
-print-educational-notes | Include educational notes in printed diagnostic output, if available |
-print-target-info | Print target information for the given target <triple>, such as x86_64-apple-macos10.9 |
-Rcross-import | Emit a remark if a cross-import of a module is triggered |
-remove-runtime-asserts | Remove runtime safety checks |
-Rmodule-loading | Emit a remark and file path of each loaded module |
-Rpass-missed <command> | Report missed transformations by optimization passes whose name matches the given POSIX regular expression |
-Rpass <command> | Report performed transformations by optimization passes whose name matches the given POSIX regular expression |
-runtime-compatibility-version <command> | Link compatibility library for Swift runtime version, or 'none' |
-save-optimization-record-passes <command> | Only include passes which match a specified regular expression in the generated optimization record (by default, include all passes) |
-save-optimization-record-path <command> | Specify the file name of any generated optimization record |
-save-optimization-record <command> | Generate an optimization record file in a specific format |
-save-optimization-record | Generate a YAML optimization record file |
-sdk <command> | Compile against a specific SDK |
-serialize-diagnostics-path <command> | Emit a serialized diagnostics file |
-static-executable | Statically link the executable |
-static-stdlib | Statically link the Swift standard library |
-suppress-warnings | Suppress all warnings |
-swift-isa-ptrauth-mode <command> | Mode for staging isa/super signing |
-swift-ptrauth-mode <command> | Mode for staging pointer authentication |
-swift-version <command> | Interpret input according to a specific Swift language version number |
-target-cpu <command> | Generate code for a particular CPU variant |
-target-variant <command> | Generate 'zippered' code for macCatalyst that can run on the specified variant target triple in addition to the main -target triple |
-target <command> | Generate code for the given target <triple>, such as x86_64-apple-macos10.9 |
-use-ld <command> | Specifies the linker to be used |
-user-module-version <command> | Module version specified from Swift module authors |
-vfsoverlay <command> | Add directory to VFS overlay file |
-v | Show commands to run and use verbose output |
-warn-concurrency | Warn about code that is unsafe according to the Swift Concurrency model and will become ill-formed in a future language version |
-warn-implicit-overrides | Warn about implicit overrides of protocol members |
-warn-swift3-objc-inference-complete | Warn about deprecated @objc inference in Swift 3 for every declaration that will no longer be inferred as @objc in Swift 4 |
-warn-swift3-objc-inference-minimal | Warn about deprecated @objc inference in Swift 3 based on direct uses of the Objective-C entrypoint |
-warnings-as-errors | Treat warnings as errors |
-working-directory <command> | Resolve file paths relative to the specified directory |
-Xcc <command> | Pass <arg> to the C/C++/Objective-C compiler |
-Xlinker <command> | Specifies an option which should be passed to the linker |