Skip to content

Conversation

@etcwilde
Copy link
Member

This patch ties the runtime and stdlib backtracing pieces together. The __swift_isThunkFunction SPI is provided in the backtracing runtime, which is gated behind SWIFT_ENABLE_BACKTRACING. If that flag is turned off, the Backtracing part of the stdlib fails to build because the symbols are missing, causing a build failure.

I've also added the explicit option(SWIFT_ENABLE_BACKTRACING option so that incremental re-runs of CMake get the flag added with a nice comment and a boolean value. The option is defaulted to OFF, though build-script is defaulting it to ON.

This patch ties the runtime and stdlib backtracing pieces together.
The `__swift_isThunkFunction` SPI is provided in the backtracing
runtime, which is gated behind `SWIFT_ENABLE_BACKTRACING`. If that flag
is turned off, the `Backtracing` part of the stdlib fails to build
because the symbols are missing, causing a build failure.

I've also added the explicit `option(SWIFT_ENABLE_BACKTRACING` option so
that incremental re-runs of CMake get the flag added with a nice
comment and a boolean value. The option is defaulted to OFF, though
build-script is defaulting it to ON.
@etcwilde etcwilde requested a review from al45tair March 14, 2023 18:41
@etcwilde
Copy link
Member Author

@swift-ci please test

@etcwilde etcwilde merged commit f824ca1 into swiftlang:main Mar 15, 2023
@etcwilde etcwilde deleted the ewilde/cmake_backtracing_option branch April 2, 2023 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants