Skip to content

Conversation

@compnerd
Copy link
Member

Pull a couple of patches from main which improve handling for asprintf on Linux platforms. asprintf is vended by the system libc for most platforms (including android) when _GNU_SOURCE is defined which we do set. Backporting this ensures that we do not accidentally break the build due to re-definition of the symbol.

These should be low risk for 5.7. The changes impact only Linux and Android platforms, preventing a duplicate definition of asprintf.

soloturn and others added 2 commits July 13, 2022 08:12
asprintf exists on linux for quite a while, 2015 at least. do use it.

(cherry picked from commit 865bc70)
Not all layers of the c library have asprintf defined, however, it is
available when `_GNU_SOURCE` is set.

(cherry picked from commit 96ddfc0)
@compnerd
Copy link
Member Author

CC: @parkera

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd changed the base branch from main to release/5.7 July 14, 2022 18:19
@compnerd
Copy link
Member Author

@swift-ci please test

Copy link
Member

@etcwilde etcwilde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@compnerd compnerd merged commit a87d185 into swiftlang:release/5.7 Jul 15, 2022
@compnerd compnerd deleted the asprintf-5.7 branch July 15, 2022 15:53
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.

4 participants