mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This will allow for modules to be split from the command line using a script. The one thing that is missing from this still is that it does not handle shared functions in IMO a satisfactory way. Given that we are splitting a module, my feeling that the correct way to do this is to create a public shim for the shared function in the module that the shared function gets put in and let all other users use that entry point. But I need to think about this a bit more.
13 lines
258 B
CMake
13 lines
258 B
CMake
add_swift_host_tool(sil-func-extractor
|
|
SILFunctionExtractor.cpp
|
|
LINK_LIBRARIES
|
|
swiftFrontend
|
|
swiftSILGen
|
|
swiftSILOptimizer
|
|
swiftSerialization
|
|
swiftClangImporter
|
|
LLVM_COMPONENT_DEPENDS
|
|
DebugInfoCodeView
|
|
SWIFT_COMPONENT tools
|
|
)
|