Files
swift-mirror/tools/sil-func-extractor/CMakeLists.txt
Michael Gottesman 0bfda96ace [sil-func-extractor] Teach sil-extract to extract a list of functions and the inverse of a list of functions. Also rename to sil-func-extractor to make it clearer what it is doing.
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.
2016-12-08 18:29:33 -08:00

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
)