OVERVIEW: Swift Symbol Graph Extractor
USAGE: swift-frontend
OPTIONS:
-active-platform-availability-only
Only emit availability metadata for platforms that are active according to the target
-allow-availability-platforms <platforms>
Restrict availability metadata to the given platforms, e.g. 'macOS,Swift'
-block-availability-platforms <platforms>
Remove the given platforms from symbol graph availability metadata, e.g. 'macOS,Swift'
-clang-target-variant <value>
Separately set the target we should use for internal Clang instance for the 'zippered' code for macCatalyst
-clang-target <value> Separately set the target we should use for internal Clang instance
-cxx-interoperability-mode=<value>
Enables C++ interoperability; pass 'default' to enable or 'off' to disable
-disable-safe-interop-wrappers
Disable safe interop wrapper generation and bounds attribute parsing
-emit-extension-block-symbols
Emit 'swift.extension' symbols for extensions to external types instead of directly associating members and conformances with the extended nominal when generating symbol graphs
-experimental-allowed-reexported-modules=<value>
Allow reexporting symbols from the provided modules if they are themselves exported from the main module. This is a comma separated list of module names.
-external-plugin-path <path>#<plugin-server-path>
Add directory to the plugin search path with a plugin server executable
-Fsystem <value> Add directory to system framework search path
-F <value> Add directory to framework search path
-help Display available options
-include-spi-symbols Add symbols with SPI information to the symbol graph
-Isystem <value> Add directory to the system import search path
-I <value> Add directory to the import search path
-language-mode <mode> Interpret input according to a specific Swift language mode
-libc <value> libc runtime library to use
-L <value> Add directory to library link search path
-minimum-access-level <level>
Include symbols with this access level or more
-module-cache-path <value>
Specifies the module cache path
-module-name <value> Name of the module to build
-omit-extension-block-symbols
Directly associate members and conformances with the extended nominal when generating symbol graphs instead of emitting 'swift.extension' symbols for extensions to external types
-output-dir <dir> Output directory
-plugin-path <value> Add directory to the plugin search path
-pretty-print Pretty-print the output JSON
-project-name <value> Name of the project this module to build belongs to
-resource-dir </usr/lib/swift>
The directory that holds the compiler resource files
-sdk <sdk> Compile against <sdk>
-skip-inherited-docs Skip emitting doc comments for members inherited through classes or default implementations
-skip-protocol-implementations
Skip emitting symbols that are implementations of protocol requirements or inherited from protocol extensions
-skip-synthesized-members
Skip members inherited through classes or default implementations
-swift-version <vers> Interpret input according to a specific Swift language version number
-symbol-graph-shorten-output-names
Shorten the symbol graph output file names by hashing the module name; outputs an additional JSON file with the map of hash to original name
-sysroot <sysroot> Native Platform sysroot
-target <triple> Generate code for the given target <triple>, such as x86_64-apple-macos10.9
-visualc-tools-root <root>
VisualC++ Tools Root
-visualc-tools-version <version>
VisualC++ ToolSet Version
-v Show commands to run and use verbose output
-windows-sdk-root <root>
Windows SDK Root
-windows-sdk-version <version>
Windows SDK Version
-Xcc <arg> Pass <arg> to the C/C++/Objective-C compiler
Options (38)
| Option | Description | Source |
|---|---|---|
-active-platform-availability-only | Only emit availability metadata for platforms that are active according to the target | help |
-allow-availability-platforms platforms | Restrict availability metadata to the given platforms, e.g. 'macOS,Swift' | help |
-block-availability-platforms platforms | Remove the given platforms from symbol graph availability metadata, e.g. 'macOS,Swift' | help |
-clang-target-variant value | Separately set the target we should use for internal Clang instance for the 'zippered' code for macCatalyst | help |
-cxx-interoperability-mode value | Enables C++ interoperability; | help |
-disable-safe-interop-wrappers | Disable safe interop wrapper generation and bounds attribute parsing | help |
-emit-extension-block-symbols | Emit 'swift.extension' symbols for extensions to external types instead of directly associating members and conformances with the extended nominal when generating symbol graphs | help |
-experimental-allowed-reexported-modules value | Allow reexporting symbols from the provided modules if they are themselves exported from the main module. | help |
-external-plugin-path path>#<plugin-server-path | Add directory to the plugin search path with a plugin server executable | help |
-Fsystem value | Add directory to system framework search path | help |
-F value | Add directory to framework search path | help |
-help | Display available options | help |
-include-spi-symbols | Add symbols with SPI information to the symbol graph | help |
-Isystem value | Add directory to the system import search path | help |
-I value | Add directory to the import search path | help |
-libc value | libc runtime library to use | help |
-L value | Add directory to library link search path | help |
-minimum-access-level level | Include symbols with this access level or more | help |
-module-cache-path value | Specifies the module cache path | help |
-module-name value | Name of the module to build | help |
-omit-extension-block-symbols | Directly associate members and conformances with the extended nominal when generating symbol graphs instead of emitting 'swift.extension' symbols for extensions to external types | help |
-output-dir dir | Output directory | help |
-plugin-path value | Add directory to the plugin search path | help |
-pretty-print | Pretty-print the output JSON | help |
-resource-dir /usr/lib/swift | The directory that holds the compiler resource files | help |
-sdk sdk | Compile against <sdk> | help |
-skip-inherited-docs | Skip emitting doc comments for members inherited through classes or default implementations | help |
-skip-protocol-implementations | Skip emitting symbols that are implementations of protocol requirements or inherited from protocol extensions | help |
-skip-synthesized-members | Skip members inherited through classes or default implementations | help |
-symbol-graph-shorten-output-names | Shorten the symbol graph output file names by hashing the module name; | help |
-sysroot sysroot | Native Platform sysroot | help |
-target triple | Generate code for the given target <triple>, such as x86_64-apple-macos10.9 | help |
-visualc-tools-root root | VisualC++ Tools Root | help |
-visualc-tools-version version | VisualC++ ToolSet Version | help |
-v | Show commands to run and use verbose output | help |
-windows-sdk-root root | Windows SDK Root | help |
-windows-sdk-version version | Windows SDK Version | help |
-Xcc arg | Pass <arg> to the C/C++/Objective-C compiler | help |