-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure CMake rules to install content into toolchain #531
Conversation
@swift-ci please test |
@@ -97,7 +97,8 @@ target_link_libraries(Testing PRIVATE | |||
add_dependencies(Testing | |||
TestingMacros) | |||
target_compile_options(Testing PRIVATE | |||
-enable-library-evolution) | |||
-enable-library-evolution | |||
-emit-module-interface -emit-module-interface-path $<TARGET_PROPERTY:Testing,Swift_MODULE_DIRECTORY>/Testing.swiftinterface) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible for us to emit our private interface too, so that developers could use @_spi
symbols?
Note this PR is still a draft, I have TODO comments I know I still need to resolve |
Sources/TestingMacros/CMakeLists.txt
Outdated
# This is not the plugin's actual, final install location -- it's only | ||
# relative to this external project's install dir. The final location is | ||
# determined by the "outer" project. | ||
install(TARGETS TestingMacros DESTINATION "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you leave off the DESTINATION ""
?
4dbafac
to
b14866c
Compare
Sources/TestingMacros/Support/Additions/FunctionDeclSyntaxAdditions.swift
Outdated
Show resolved
Hide resolved
c1da06f
to
2e882c6
Compare
Closing as this PR has been superseded by #581. |
This includes several changes to the CMake rules to support installing built content into a toolchain.
Motivation:
This is necessary to support including swift-testing in Swift 6 toolchains.
Checklist: