Skip to content

Instantly share code, notes, and snippets.

@zrzka
Created June 29, 2015 22:47
Show Gist options
  • Save zrzka/c89705ff634ea01aebc1 to your computer and use it in GitHub Desktop.
Save zrzka/c89705ff634ea01aebc1 to your computer and use it in GitHub Desktop.
Xcode 7B2 Swift hidden options
15a16
> -interpret Immediate mode
17a19
> -repl REPL mode (the default if there is no input file)
20,22c22,45
< -application-extension Restrict code to those available for App Extensions
< -assert-config <value> Specify the assert_configuration replacement. Possible values are Debug, Release, Replacement.
< -color-diagnostics Print diagnostics in color
---
> -application-extension Restrict code to those available for App Extensions
> -assert-config <value> Specify the assert_configuration replacement. Possible values are Debug, Release, Replacement.
> -autolink-force-load Force ld to link against this module even if no symbols are used
> -code-complete-inits-in-postfix-expr
> Include initializers when completing a postfix expression
> -color-diagnostics Print diagnostics in color
> -debug-assert-after-parse
> Force an assertion failure after parsing
> -debug-assert-immediately
> Force an assertion failure immediately
> -debug-constraints-attempt <value>
> Debug the constraint solver at a given attempt
> -debug-constraints Debug the constraint-based type checker
> -debug-crash-after-parse
> Force a crash after parsing
> -debug-crash-immediately
> Force a crash immediately
> -debug-forbid-typecheck-prefix <value>
> Triggers llvm fatal_error if typechecker tries to typecheck a decl with the provided prefix name
> -debug-generic-signatures
> Debug generic signatures
> -debug-time-function-bodies
> Dumps the time it takes to type-check each function body
> -debugger-support Process swift code as if running in the debugger
24c47,61
< Delay function body parsing until the end of all files
---
> Delay function body parsing until the end of all files
> -disable-access-control Don't respect access control restrictions
> -disable-arc-opts Don't run SIL ARC optimization passes.
> -disable-autolink-framework <value>
> Disable autolinking against the provided framework
> -disable-availability-checking
> Disable checking for potentially unavailable APIs
> -disable-diagnostic-passes
> Don't run diagnostic passes
> -disable-func-sig-opts Disable function signature optimizations
> -disable-llvm-arc-opts Don't run LLVM ARC optimization passes.
> -disable-llvm-optzns Don't run LLVM optimization passes
> -disable-llvm-slp-vectorizer
> Don't run LLVM SLP vectorizer
> -disable-llvm-verify Don't run the LLVM IR verifier.
26,27c63,67
< Disable requiring uses of @objc to require importing the Foundation module
< -disable-objc-interop Disable Objective-C interop code generation and config directives
---
> Disable requiring uses of @objc to require importing the Foundation module
> -disable-objc-interop Disable Objective-C interop code generation and config directives
> -disable-playground-transform
> Disable playground transformation
> -disable-sil-linking Don't link SIL functions
29c69
< Disable checking the target OS of serialized modules
---
> Disable checking the target OS of serialized modules
31,34c71,75
< Disable checking of @testable
< -D <value> Specifies one or more build configuration options
< -embed-bitcode-marker Embed placeholder LLVM IR data as a marker
< -embed-bitcode Embed LLVM IR bitcode as data
---
> Disable checking of @testable
> -dump-clang-diagnostics Dump Clang diagnostics to stderr
> -D <value> Specifies one or more build configuration options
> -embed-bitcode-marker Embed placeholder LLVM IR data as a marker
> -embed-bitcode Embed LLVM IR bitcode as data
36,37c77,78
< Output basic Make-compatible dependencies file to <path>
< -emit-dependencies Emit basic Make-compatible dependencies files
---
> Output basic Make-compatible dependencies file to <path>
> -emit-dependencies Emit basic Make-compatible dependencies files
39c80
< Output compiler fixits as source edits to <path>
---
> Output compiler fixits as source edits to <path>
41,42c82,83
< Output module documentation file <path>
< -emit-module-doc Emit a module documentation file based on documentation comments
---
> Output module documentation file <path>
> -emit-module-doc Emit a module documentation file based on documentation comments
44,45c85,86
< Emit an importable module to <path>
< -emit-module Emit an importable module
---
> Emit an importable module to <path>
> -emit-module Emit an importable module
47,48c88,89
< Emit an Objective-C header file to <path>
< -emit-objc-header Emit an Objective-C header file
---
> Emit an Objective-C header file to <path>
> -emit-objc-header Emit an Objective-C header file
50c91
< Output Swift-style dependencies file to <path>
---
> Output Swift-style dependencies file to <path>
52c93,108
< Emit a Swift-style dependencies file
---
> Emit a Swift-style dependencies file
> -emit-sorted-sil When printing SIL, print out all sil entities sorted by name to ease diffing
> -emit-verbose-sil Emit locations during SIL emission
> -enable-access-control Respect access control restrictions
> -enable-availability-checking-in-implicit-functions
> Enable checking availability in implicit functions
> -enable-c-function-pointers
> Enable native C function pointer types
> -enable-character-literals
> Enable legacy character literals
> -enable-experimental-patterns
> Enable experimental 'switch' pattern matching features
> -enable-experimental-unavailable-as-optional
> Enable experimental treat unavailable symbols as optional
> -enable-interface-type-mangling
> Mangle declarations using interface types
54,55c110,115
< Enable requiring uses of @objc to require importing the Foundation module
< -enable-objc-interop Enable Objective-C interop code generation and config directives
---
> Enable requiring uses of @objc to require importing the Foundation module
> -enable-objc-implicit-properties
> Import Objective-C "implicit properties" as properties
> -enable-objc-interop Enable Objective-C interop code generation and config directives
> -enable-simd-import Enable importing C vector types as SIMD types
> -enable-source-import Enable importing of Swift source files
57c117
< Enable checking the target OS of serialized modules
---
> Enable checking the target OS of serialized modules
59,65c119,135
< Enable checking of @testable
< -framework <value> Specifies a framework which should be linked against
< -F <value> Add directory to framework search path
< -gline-tables-only Emit minimal debug info for backtraces only
< -gnone Don't emit debug info
< -g Emit debug info
< -help Display available options
---
> Enable checking of @testable
> -enable-testing Allows this module's internal API to be accessed for testing
> -enable-throw-without-try
> Allow throwing function calls without 'try'
> -external-pass-pipeline-filename <pass_pipeline_file>
> Use the pass pipeline defined by <pass_pipeline_file>
> -framework <value> Specifies a framework which should be linked against
> -F <value> Add directory to framework search path
> -gline-tables-only Emit minimal debug info for backtraces only
> -gnone Don't emit debug info
> -g Emit debug info
> -help-hidden Display available options, including hidden options
> -help Display available options
> -import-cf-types Recognize and import CF types as class types
> -import-module <value> Implicitly import the specified module
> -import-objc-header <value>
> Implicitly imports an Objective-C header file
67,70c137,140
< Implicitly imports the Objective-C half of a module
< -I <value> Add directory to the import search path
< -L <value> Add directory to library link search path
< -l<value> Specifies a library which should be linked against
---
> Implicitly imports the Objective-C half of a module
> -I <value> Add directory to the import search path
> -L <value> Add directory to library link search path
> -l<value> Specifies a library which should be linked against
72c142
< Specifies the Clang module cache path
---
> Specifies the Clang module cache path
74,85c144,162
< Library to link against when using this module
< -module-name <value> Name of the module to build
< -nostdimport Don't search the standard library import path for modules
< -num-threads <n> Enable multi-threading and specify number of threads
< -Onone Compile without any optimization
< -Ounchecked Compile with optimizations and remove runtime safety checks
< -O Compile with optimizations
< -o <file> Write output to <file>
< -parse-as-library Parse the input file(s) as libraries, not scripts
< -parse-sil Parse the input file as SIL code, not Swift source
< -primary-file <value> Produce output for this file, not the whole module
< -print-clang-stats Print Clang importer statistics
---
> Library to link against when using this module
> -module-name <value> Name of the module to build
> -nostdimport Don't search the standard library import path for modules
> -num-threads <n> Enable multi-threading and specify number of threads
> -Onone Compile without any optimization
> -Oplayground Compile with optimizations appropriate for a playground
> -Ounchecked Compile with optimizations and remove runtime safety checks
> -O Compile with optimizations
> -o <file> Write output to <file>
> -parse-as-library Parse the input file(s) as libraries, not scripts
> -parse-sil Parse the input file as SIL code, not Swift source
> -parse-stdlib Parse the input file(s) as the Swift standard library
> -playground-high-performance
> Omit instrumentation that has a high runtime performance impact
> -playground Apply the playground semantics and transformation
> -primary-file <value> Produce output for this file, not the whole module
> -print-clang-stats Print Clang importer statistics
> -print-inst-counts Before IRGen, count all the various SIL instructions. Must be used in conjunction with -print-stats.
> -print-stats Print various statistics
87,89c164,169
< Generate coverage data for use with profiled execution counts
< -profile-generate Generate instrumented code to collect execution counts
< -sdk <sdk> Compile against <sdk>
---
> Generate coverage data for use with profiled execution counts
> -profile-generate Generate instrumented code to collect execution counts
> -remove-runtime-asserts Remove runtime asserts.
> -resource-dir </usr/lib/swift>
> The directory that holds the compiler resource files
> -sdk <sdk> Compile against <sdk>
91c171
< Always serialize options for debugging (default: only for apps)
---
> Always serialize options for debugging (default: only for apps)
93,94c173,174
< Output serialized diagnostics to <path>
< -serialize-diagnostics Serialize diagnostics in a binary format
---
> Output serialized diagnostics to <path>
> -serialize-diagnostics Serialize diagnostics in a binary format
96,99c176,192
< Keep emitting subsequent diagnostics after a fatal error
< -target-cpu <value> Generate code for a particular CPU variant
< -target <value> Generate code for the given target
< -verify Verify diagnostics against expected-{error|warning|note} annotations
---
> Keep emitting subsequent diagnostics after a fatal error
> -sil-debug-serialization
> Do not eliminate functions in Mandatory Inlining/SILCombine dead functions. (for debugging only)
> -sil-inline-threshold <50>
> Controls the aggressiveness of performance inlining
> -sil-link-all Link all SIL functions
> -sil-serialize-all Serialize all generated SIL
> -sil-verify-all Verify SIL after each transform
> -solver-memory-threshold <value>
> Set the upper bound for memory consumption, in bytes, by the constraint solver
> -target-cpu <value> Generate code for a particular CPU variant
> -target <value> Generate code for the given target
> -use-jit Register Objective-C classes as if the JIT were in use
> -use-malloc Allocate internal data structures using malloc (for memory debugging)
> -verify-type-layout <type>
> Verify compile-time and runtime type layout information for type
> -verify Verify diagnostics against expected-{error|warning|note} annotations
101,102c194,196
< Optimize input files together instead of individually
< -Xcc <arg> Pass <arg> to the C/C++/Objective-C compiler
---
> Optimize input files together instead of individually
> -Xcc <arg> Pass <arg> to the C/C++/Objective-C compiler
> -Xllvm <arg> Pass <arg> to LLVM.
OVERVIEW: Swift frontend
USAGE: swift -frontend [options] <inputs>
MODES:
-dump-ast Parse and type-check input file(s) and dump AST(s)
-dump-parse Parse input file(s) and dump AST(s)
-emit-assembly Emit assembly file(s) (-S)
-emit-bc Emit LLVM BC file(s)
-emit-ir Emit LLVM IR file(s)
-emit-object Emit object file(s) (-c)
-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)
-interpret Immediate mode
-parse Parse input file(s)
-print-ast Parse and type-check input file(s) and pretty print AST(s)
-repl REPL mode (the default if there is no input file)
OPTIONS:
-application-extension Restrict code to those available for App Extensions
-assert-config <value> Specify the assert_configuration replacement. Possible values are Debug, Release, Replacement.
-autolink-force-load Force ld to link against this module even if no symbols are used
-code-complete-inits-in-postfix-expr
Include initializers when completing a postfix expression
-color-diagnostics Print diagnostics in color
-debug-assert-after-parse
Force an assertion failure after parsing
-debug-assert-immediately
Force an assertion failure immediately
-debug-constraints-attempt <value>
Debug the constraint solver at a given attempt
-debug-constraints Debug the constraint-based type checker
-debug-crash-after-parse
Force a crash after parsing
-debug-crash-immediately
Force a crash immediately
-debug-forbid-typecheck-prefix <value>
Triggers llvm fatal_error if typechecker tries to typecheck a decl with the provided prefix name
-debug-generic-signatures
Debug generic signatures
-debug-time-function-bodies
Dumps the time it takes to type-check each function body
-debugger-support Process swift code as if running in the debugger
-delayed-function-body-parsing
Delay function body parsing until the end of all files
-disable-access-control Don't respect access control restrictions
-disable-arc-opts Don't run SIL ARC optimization passes.
-disable-autolink-framework <value>
Disable autolinking against the provided framework
-disable-availability-checking
Disable checking for potentially unavailable APIs
-disable-diagnostic-passes
Don't run diagnostic passes
-disable-func-sig-opts Disable function signature optimizations
-disable-llvm-arc-opts Don't run LLVM ARC optimization passes.
-disable-llvm-optzns Don't run LLVM optimization passes
-disable-llvm-slp-vectorizer
Don't run LLVM SLP vectorizer
-disable-llvm-verify Don't run the LLVM IR verifier.
-disable-objc-attr-requires-foundation-module
Disable requiring uses of @objc to require importing the Foundation module
-disable-objc-interop Disable Objective-C interop code generation and config directives
-disable-playground-transform
Disable playground transformation
-disable-sil-linking Don't link SIL functions
-disable-target-os-checking
Disable checking the target OS of serialized modules
-disable-testable-attr-requires-testable-module
Disable checking of @testable
-dump-clang-diagnostics Dump Clang diagnostics to stderr
-D <value> Specifies one or more build configuration options
-embed-bitcode-marker Embed placeholder LLVM IR data as a marker
-embed-bitcode Embed LLVM IR bitcode as data
-emit-dependencies-path <path>
Output basic Make-compatible dependencies file to <path>
-emit-dependencies Emit basic Make-compatible dependencies files
-emit-fixits-path <path>
Output compiler fixits as source edits to <path>
-emit-module-doc-path <path>
Output module documentation file <path>
-emit-module-doc Emit a module documentation file based on documentation comments
-emit-module-path <path>
Emit an importable module to <path>
-emit-module Emit an importable module
-emit-objc-header-path <path>
Emit an Objective-C header file to <path>
-emit-objc-header Emit an Objective-C header file
-emit-reference-dependencies-path <path>
Output Swift-style dependencies file to <path>
-emit-reference-dependencies
Emit a Swift-style dependencies file
-emit-sorted-sil When printing SIL, print out all sil entities sorted by name to ease diffing
-emit-verbose-sil Emit locations during SIL emission
-enable-access-control Respect access control restrictions
-enable-availability-checking-in-implicit-functions
Enable checking availability in implicit functions
-enable-c-function-pointers
Enable native C function pointer types
-enable-character-literals
Enable legacy character literals
-enable-experimental-patterns
Enable experimental 'switch' pattern matching features
-enable-experimental-unavailable-as-optional
Enable experimental treat unavailable symbols as optional
-enable-interface-type-mangling
Mangle declarations using interface types
-enable-objc-attr-requires-foundation-module
Enable requiring uses of @objc to require importing the Foundation module
-enable-objc-implicit-properties
Import Objective-C "implicit properties" as properties
-enable-objc-interop Enable Objective-C interop code generation and config directives
-enable-simd-import Enable importing C vector types as SIMD types
-enable-source-import Enable importing of Swift source files
-enable-target-os-checking
Enable checking the target OS of serialized modules
-enable-testable-attr-requires-testable-module
Enable checking of @testable
-enable-testing Allows this module's internal API to be accessed for testing
-enable-throw-without-try
Allow throwing function calls without 'try'
-external-pass-pipeline-filename <pass_pipeline_file>
Use the pass pipeline defined by <pass_pipeline_file>
-framework <value> Specifies a framework which should be linked against
-F <value> Add directory to framework search path
-gline-tables-only Emit minimal debug info for backtraces only
-gnone Don't emit debug info
-g Emit debug info
-help-hidden Display available options, including hidden options
-help Display available options
-import-cf-types Recognize and import CF types as class types
-import-module <value> Implicitly import the specified module
-import-objc-header <value>
Implicitly imports an Objective-C header file
-import-underlying-module
Implicitly imports the Objective-C half of a module
-I <value> Add directory to the import search path
-L <value> Add directory to library link search path
-l<value> Specifies a library which should be linked against
-module-cache-path <value>
Specifies the Clang module cache path
-module-link-name <value>
Library to link against when using this module
-module-name <value> Name of the module to build
-nostdimport Don't search the standard library import path for modules
-num-threads <n> Enable multi-threading and specify number of threads
-Onone Compile without any optimization
-Oplayground Compile with optimizations appropriate for a playground
-Ounchecked Compile with optimizations and remove runtime safety checks
-O Compile with optimizations
-o <file> Write output to <file>
-parse-as-library Parse the input file(s) as libraries, not scripts
-parse-sil Parse the input file as SIL code, not Swift source
-parse-stdlib Parse the input file(s) as the Swift standard library
-playground-high-performance
Omit instrumentation that has a high runtime performance impact
-playground Apply the playground semantics and transformation
-primary-file <value> Produce output for this file, not the whole module
-print-clang-stats Print Clang importer statistics
-print-inst-counts Before IRGen, count all the various SIL instructions. Must be used in conjunction with -print-stats.
-print-stats Print various statistics
-profile-coverage-mapping
Generate coverage data for use with profiled execution counts
-profile-generate Generate instrumented code to collect execution counts
-remove-runtime-asserts Remove runtime asserts.
-resource-dir </usr/lib/swift>
The directory that holds the compiler resource files
-sdk <sdk> Compile against <sdk>
-serialize-debugging-options
Always serialize options for debugging (default: only for apps)
-serialize-diagnostics-path <path>
Output serialized diagnostics to <path>
-serialize-diagnostics Serialize diagnostics in a binary format
-show-diagnostics-after-fatal
Keep emitting subsequent diagnostics after a fatal error
-sil-debug-serialization
Do not eliminate functions in Mandatory Inlining/SILCombine dead functions. (for debugging only)
-sil-inline-threshold <50>
Controls the aggressiveness of performance inlining
-sil-link-all Link all SIL functions
-sil-serialize-all Serialize all generated SIL
-sil-verify-all Verify SIL after each transform
-solver-memory-threshold <value>
Set the upper bound for memory consumption, in bytes, by the constraint solver
-target-cpu <value> Generate code for a particular CPU variant
-target <value> Generate code for the given target
-use-jit Register Objective-C classes as if the JIT were in use
-use-malloc Allocate internal data structures using malloc (for memory debugging)
-verify-type-layout <type>
Verify compile-time and runtime type layout information for type
-verify Verify diagnostics against expected-{error|warning|note} annotations
-whole-module-optimization
Optimize input files together instead of individually
-Xcc <arg> Pass <arg> to the C/C++/Objective-C compiler
-Xllvm <arg> Pass <arg> to LLVM.
OVERVIEW: Swift frontend
USAGE: swift -frontend [options] <inputs>
MODES:
-dump-ast Parse and type-check input file(s) and dump AST(s)
-dump-parse Parse input file(s) and dump AST(s)
-emit-assembly Emit assembly file(s) (-S)
-emit-bc Emit LLVM BC file(s)
-emit-ir Emit LLVM IR file(s)
-emit-object Emit object file(s) (-c)
-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)
-parse Parse input file(s)
-print-ast Parse and type-check input file(s) and pretty print AST(s)
OPTIONS:
-application-extension Restrict code to those available for App Extensions
-assert-config <value> Specify the assert_configuration replacement. Possible values are Debug, Release, Replacement.
-color-diagnostics Print diagnostics in color
-delayed-function-body-parsing
Delay function body parsing until the end of all files
-disable-objc-attr-requires-foundation-module
Disable requiring uses of @objc to require importing the Foundation module
-disable-objc-interop Disable Objective-C interop code generation and config directives
-disable-target-os-checking
Disable checking the target OS of serialized modules
-disable-testable-attr-requires-testable-module
Disable checking of @testable
-D <value> Specifies one or more build configuration options
-embed-bitcode-marker Embed placeholder LLVM IR data as a marker
-embed-bitcode Embed LLVM IR bitcode as data
-emit-dependencies-path <path>
Output basic Make-compatible dependencies file to <path>
-emit-dependencies Emit basic Make-compatible dependencies files
-emit-fixits-path <path>
Output compiler fixits as source edits to <path>
-emit-module-doc-path <path>
Output module documentation file <path>
-emit-module-doc Emit a module documentation file based on documentation comments
-emit-module-path <path>
Emit an importable module to <path>
-emit-module Emit an importable module
-emit-objc-header-path <path>
Emit an Objective-C header file to <path>
-emit-objc-header Emit an Objective-C header file
-emit-reference-dependencies-path <path>
Output Swift-style dependencies file to <path>
-emit-reference-dependencies
Emit a Swift-style dependencies file
-enable-objc-attr-requires-foundation-module
Enable requiring uses of @objc to require importing the Foundation module
-enable-objc-interop Enable Objective-C interop code generation and config directives
-enable-target-os-checking
Enable checking the target OS of serialized modules
-enable-testable-attr-requires-testable-module
Enable checking of @testable
-framework <value> Specifies a framework which should be linked against
-F <value> Add directory to framework search path
-gline-tables-only Emit minimal debug info for backtraces only
-gnone Don't emit debug info
-g Emit debug info
-help Display available options
-import-underlying-module
Implicitly imports the Objective-C half of a module
-I <value> Add directory to the import search path
-L <value> Add directory to library link search path
-l<value> Specifies a library which should be linked against
-module-cache-path <value>
Specifies the Clang module cache path
-module-link-name <value>
Library to link against when using this module
-module-name <value> Name of the module to build
-nostdimport Don't search the standard library import path for modules
-num-threads <n> Enable multi-threading and specify number of threads
-Onone Compile without any optimization
-Ounchecked Compile with optimizations and remove runtime safety checks
-O Compile with optimizations
-o <file> Write output to <file>
-parse-as-library Parse the input file(s) as libraries, not scripts
-parse-sil Parse the input file as SIL code, not Swift source
-primary-file <value> Produce output for this file, not the whole module
-print-clang-stats Print Clang importer statistics
-profile-coverage-mapping
Generate coverage data for use with profiled execution counts
-profile-generate Generate instrumented code to collect execution counts
-sdk <sdk> Compile against <sdk>
-serialize-debugging-options
Always serialize options for debugging (default: only for apps)
-serialize-diagnostics-path <path>
Output serialized diagnostics to <path>
-serialize-diagnostics Serialize diagnostics in a binary format
-show-diagnostics-after-fatal
Keep emitting subsequent diagnostics after a fatal error
-target-cpu <value> Generate code for a particular CPU variant
-target <value> Generate code for the given target
-verify Verify diagnostics against expected-{error|warning|note} annotations
-whole-module-optimization
Optimize input files together instead of individually
-Xcc <arg> Pass <arg> to the C/C++/Objective-C compiler
Roberts-MacBook:Desktop robertvojta$ diff swift-help.txt swift-help-hidden.txt
4a5,18
> DEBUG/DEVELOPMENT OPTIONS:
> -driver-print-actions Dump list of actions to perform
> -driver-print-bindings Dump list of bindings
> -driver-print-jobs Dump list of jobs to execute
> -driver-print-output-file-map
> Dump the contents of the output file map
> -driver-skip-execution Skip execution of subtasks when performing compilation
> -driver-use-frontend-path <value>
> Use the given executable to perform compilations
>
> MODES:
> -lldb-repl LLDB-enhanced REPL mode
> -repl REPL mode (the default if there is no input file)
>
6a21,22
> -autolink-force-load Force ld to link against this module even if no symbols are used
> --driver-mode=<value> Set the driver mode to either 'swift' or 'swiftc'
12a29
> -help-hidden Display available options, including hidden options
13a31,33
> -import-cf-types Recognize and import CF types as class types
> -import-objc-header <value>
> Implicitly imports an Objective-C header file
22a43
> -no-link-objc-runtime Don't link in additions to the Objective-C runtime
25a47
> -Oplayground Compile with optimizations appropriate for a playground
27a50,52
> -parse-stdlib Parse the input file(s) as the Swift standard library
> -resource-dir </usr/lib/swift>
> The directory that holds the compiler resource files
28a54,55
> -solver-memory-threshold <value>
> Set the upper bound for memory consumption, in bytes, by the constraint solver
33a61
> -Xfrontend <arg> Pass <arg> to the Swift frontend
34a63
> -Xllvm <arg> Pass <arg> to LLVM.
Roberts-MacBook:Desktop robertvojta$
OVERVIEW: Swift compiler
USAGE: swift [options] <inputs>
DEBUG/DEVELOPMENT OPTIONS:
-driver-print-actions Dump list of actions to perform
-driver-print-bindings Dump list of bindings
-driver-print-jobs Dump list of jobs to execute
-driver-print-output-file-map
Dump the contents of the output file map
-driver-skip-execution Skip execution of subtasks when performing compilation
-driver-use-frontend-path <value>
Use the given executable to perform compilations
MODES:
-lldb-repl LLDB-enhanced REPL mode
-repl REPL mode (the default if there is no input file)
OPTIONS:
-assert-config <value> Specify the assert_configuration replacement. Possible values are Debug, Release, Replacement.
-autolink-force-load Force ld to link against this module even if no symbols are used
--driver-mode=<value> Set the driver mode to either 'swift' or 'swiftc'
-D <value> Specifies one or more build configuration options
-framework <value> Specifies a framework which should be linked against
-F <value> Add directory to framework search path
-gline-tables-only Emit minimal debug info for backtraces only
-gnone Don't emit debug info
-g Emit debug info
-help-hidden Display available options, including hidden options
-help Display available options
-import-cf-types Recognize and import CF types as class types
-import-objc-header <value>
Implicitly imports an Objective-C header file
-I <value> Add directory to the import search path
-j <n> Number of commands to execute in parallel
-L <value> Add directory to library link search path
-l<value> Specifies a library which should be linked against
-module-cache-path <value>
Specifies the Clang module cache path
-module-link-name <value>
Library to link against when using this module
-module-name <value> Name of the module to build
-no-link-objc-runtime Don't link in additions to the Objective-C runtime
-nostdimport Don't search the standard library import path for modules
-num-threads <n> Enable multi-threading and specify number of threads
-Onone Compile without any optimization
-Oplayground Compile with optimizations appropriate for a playground
-Ounchecked Compile with optimizations and remove runtime safety checks
-O Compile with optimizations
-parse-stdlib Parse the input file(s) as the Swift standard library
-resource-dir </usr/lib/swift>
The directory that holds the compiler resource files
-sdk <sdk> Compile against <sdk>
-solver-memory-threshold <value>
Set the upper bound for memory consumption, in bytes, by the constraint solver
-target-cpu <value> Generate code for a particular CPU variant
-target <value> Generate code for the given target
-version Print version information and exit
-v Show commands to run and use verbose output
-Xcc <arg> Pass <arg> to the C/C++/Objective-C compiler
-Xfrontend <arg> Pass <arg> to the Swift frontend
-Xlinker <value> Specifies an option which should be passed to the linker
-Xllvm <arg> Pass <arg> to LLVM.
OVERVIEW: Swift compiler
USAGE: swift [options] <inputs>
OPTIONS:
-assert-config <value> Specify the assert_configuration replacement. Possible values are Debug, Release, Replacement.
-D <value> Specifies one or more build configuration options
-framework <value> Specifies a framework which should be linked against
-F <value> Add directory to framework search path
-gline-tables-only Emit minimal debug info for backtraces only
-gnone Don't emit debug info
-g Emit debug info
-help Display available options
-I <value> Add directory to the import search path
-j <n> Number of commands to execute in parallel
-L <value> Add directory to library link search path
-l<value> Specifies a library which should be linked against
-module-cache-path <value>
Specifies the Clang module cache path
-module-link-name <value>
Library to link against when using this module
-module-name <value> Name of the module to build
-nostdimport Don't search the standard library import path for modules
-num-threads <n> Enable multi-threading and specify number of threads
-Onone Compile without any optimization
-Ounchecked Compile with optimizations and remove runtime safety checks
-O Compile with optimizations
-sdk <sdk> Compile against <sdk>
-target-cpu <value> Generate code for a particular CPU variant
-target <value> Generate code for the given target
-version Print version information and exit
-v Show commands to run and use verbose output
-Xcc <arg> Pass <arg> to the C/C++/Objective-C compiler
-Xlinker <value> Specifies an option which should be passed to the linker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment