Skip to content

Conversation

@al45tair
Copy link
Contributor

@al45tair al45tair commented May 7, 2024

The backtracer and its build system need a couple of changes to make them work with the new fully-static Linux support.

rdar://123507656

al45tair added 4 commits May 7, 2024 20:31
Use the new `SWIFT_SDK_<sdk>_STATIC_LINKING_SUPPORTED` and
`_STATIC_ONLY` flags instead of hardcoding support for Linux
and WASI.

Also, use the `_LIB_SUBDIR` variable rather than lowercasing
the SDK.

rdar://123504757
This is really just about setting appropriate defaults (such as
making sure that the static Linux triple causes us to use lld).

rdar://123506306
We only need this for WASI and Glibc.

rdar://123506306
The backtracer and its build system need a couple of changes to make
them work with the new fully-static Linux support.

rdar://123507656
@al45tair al45tair added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels May 7, 2024
@al45tair al45tair requested a review from a team as a code owner May 7, 2024 20:03
@al45tair
Copy link
Contributor Author

al45tair commented May 7, 2024

@swift-ci Please test

@al45tair
Copy link
Contributor Author

al45tair commented May 7, 2024

Explanation: Tweaks the backtracer and its build scripts to work for the new statically linked SDK.
Original PR: #71847
Risk: Low.
Reviewed by: @mikeash
Resolves: rdar://123507656
Tests: There are tests for the backtracer that will ensure that this doesn't break any of the existing builds. None of the tests covers the static SDK (since it's a separate artefact).

@al45tair al45tair merged commit 9745480 into swiftlang:release/6.0 May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🍒 release cherry pick Flag: Release branch cherry picks swift 6.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants