-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Backtracing] Add support for building target executables into libexec. #63650
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
Conversation
We're going to add a program, `swift-backtrace`, that gets built alongside the stdlib and the runtime, and that needs to be installed in libexec/swift alongside the libraries in lib/swift. It wants to be built with the stdlib/runtime because there's an internal interface between `swift-backtrace` and the runtime, so the program needs to stay in lock-step with the runtime library. rdar://105390807
This is part of a set of stacked PRs:
(Only the bottom PR will be able to run PR checks at any time. Please don't wait for the checks before review.) |
@swift-ci Please smoke test linux platform |
Looking, still making sense of what all of the |
I think the high-level of where things are going seems sensible to me. I'm not familiar enough with Windows to say on that front. I'm still trying to figure out what an end "happy" state for CMake will look like once I can start using new cmake 3.26 features. I'll keep looking at this tomorrow though. |
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.
The catalyst stuff makes me sad, but I can't think of any tricks to make them nicer at the moment.
CC @compnerd for comments and thoughts on the Windows side of things.
We're going to add a program,
swift-backtrace
, that gets built alongside the stdlib and the runtime, and that needs to be installed in libexec/swift alongside the libraries in lib/swift.It wants to be built with the stdlib/runtime because there's an internal interface between
swift-backtrace
and the runtime, so the program needs to stay in lock-step with the runtime library.rdar://105390807