Skip to content

Bring back "Use C to force the POSIX (not GNU) overload of strerror_r to be selected" #500

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

Merged
merged 2 commits into from
Mar 20, 2025

Conversation

finagolfin
Copy link
Member

This allows building TSC for Android without needing to pass custom flags via -Xcc.

Let's see what failed on Amazon linux last time.

This allows building TSC for Android without needing to pass custom flags via -Xcc.
@finagolfin
Copy link
Member Author

@swift-ci test

@finagolfin
Copy link
Member Author

@jakepetroules, this now built fine on the Amazon Linux 2 CI after I added the commit with a single CMake tweak (that CI is currently broken because it doesn't pass the SwiftPM tests, but this pull now maintains that status quo). Please review.

@jakepetroules
Copy link
Contributor

Thank you; I hadn't gotten a chance to come back to this earlier!

@finagolfin finagolfin marked this pull request as ready for review March 19, 2025 21:12
@finagolfin finagolfin merged commit d4ec771 into swiftlang:main Mar 20, 2025
3 checks passed
@finagolfin finagolfin deleted the droid branch March 20, 2025 11:03
finagolfin added a commit to swiftlang/swift-package-manager that referenced this pull request Apr 2, 2025
…p dlerror() (#8438)

Removing the definition of `_GNU_SOURCE` is no longer needed since
swiftlang/swift-tools-support-core#500 made sure the right
`strerror_r()` is used, and `dlerror()` has to be unwrapped because of
its `_Nullable` annotation.
finagolfin added a commit to swiftlang/swift-driver that referenced this pull request Apr 2, 2025
Removing the definition of `_GNU_SOURCE` is no longer needed since
swiftlang/swift-tools-support-core#500 made sure the right `strerror_r()` is used.
bnbarham pushed a commit to swiftlang/sourcekit-lsp that referenced this pull request Apr 3, 2025
Removing the definition of `_GNU_SOURCE` is no longer needed since
swiftlang/swift-tools-support-core#500 made sure the right `strerror_r()` is used.
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.

2 participants