:0: warning: legacy driver is now deprecated; consider avoiding specifying '-disallow-use-new-driver' OVERVIEW: Swift compiler USAGE: swiftc DEBUG/DEVELOPMENT OPTIONS: -compiler-assertions Enable internal self-checks while compiling MODES: -dump-ast Parse and type-check input file(s) and dump AST(s) -dump-parse Parse input file(s) and dump AST(s) -dump-pcm Dump debugging information about a precompiled Clang module -dump-scope-maps Parse and type-check input file(s) and dump the scope map(s) -dump-type-info Output YAML dump of fixed-size types from all imported modules -emit-assembly Emit assembly file(s) (-S) -emit-bc Emit LLVM BC file(s) -emit-executable Emit a linked executable -emit-imported-modules Emit a list of the imported modules -emit-irgen Emit LLVM IR file(s) before LLVM optimizations -emit-ir Emit LLVM IR file(s) after LLVM optimizations -emit-library Emit a linked library -emit-lowered-sil Emit lowered SIL file(s) -emit-object Emit object file(s) (-c) -emit-pcm Emit a precompiled Clang module from a module map -emit-polyglot-ast Parse the Objective-C input file and emit polyglot AST as JSON -emit-sibgen Emit serialized AST + raw SIL file(s) -emit-sib Emit serialized AST + canonical SIL file(s) -emit-silgen Emit raw SIL file(s) -emit-sil Emit canonical SIL file(s) -emit-supported-arguments Emit a JSON file including all supported compiler arguments -index-file Produce index data for a source file -parse Parse input file(s) -print-ast-decl Parse and type-check input file(s) and pretty print declarations from AST(s) -print-ast Parse and type-check input file(s) and pretty print AST(s) -resolve-imports Parse and resolve imports in input file(s) -scan-dependencies Scan dependencies of the given Swift sources -typecheck Parse and type-check input file(s) OPTIONS: -access-notes-path Specify YAML file to override attributes on Swift declarations in this module -active-platform-availability-only Only emit availability metadata for platforms that are active according to the target -allow-availability-platforms Restrict availability metadata to the given platforms, e.g. 'macOS,Swift' -allow-non-resilient-access Ensures all contents are generated besides exportable decls in the binary module, so non-resilient access can be allowed -allowable-client Module names that are allowed to import this module -api-diff-data-dir Load platform and version specific API migration data files from . Ignored if -api-diff-data-file is specified. -api-diff-data-file API migration data is from -application-extension-library Restrict code to those available for App Extension Libraries -application-extension Restrict code to those available for App Extensions -assert-config Specify the assert_configuration replacement. Possible values are Debug, Release, Unchecked, DisableReplacement. -avoid-emit-module-source-info don't emit Swift source info file -block-availability-platforms Remove the given platforms from symbol graph availability metadata, e.g. 'macOS,Swift' -build-id Specify the build ID argument passed to the linker -cache-compile-job Enable compiler caching -cache-disable-replay Skip loading the compilation result from cache -cas-path Path to CAS -cas-plugin-option =