mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
All this does is automate the creation of the ${DIRNAME}_SOURCES variables that we already create and allows for the author to avoid having to prefix with the directory name, i.e.:
set(FOOBAR_SOURCES
FooBar/Source.cpp
PARENT_SCOPE)
=>
silopt_register_sources(
Source.cpp)
Much easier and cleaner to read. I put the code that implements this in the
CMakeLists.txt file just for the SILOptimizer.
7 lines
149 B
CMake
7 lines
149 B
CMake
silopt_register_sources(
|
|
FunctionSignatureOpts.cpp
|
|
DeadArgumentTransform.cpp
|
|
ArgumentExplosionTransform.cpp
|
|
OwnedToGuaranteedTransform.cpp
|
|
)
|