Skip to content

swift-plugin-server: adjust API for portability #68268

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 4 commits into from
Sep 4, 2023

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Sep 1, 2023

This begins reworking the API to be less POSIX centric and more generally usable. The API was defined in terms of dlopen/dlsym rather than the better suited llvm::sys::DynamicLibrary APIs which would avoid most of the work that needs to be done here for platform specifics. Prefer to guard that with _WIN32 until this is fully tested on Windows.

@compnerd
Copy link
Member Author

compnerd commented Sep 1, 2023

CC: @bnbarham @rintaro @DougGregor

@compnerd compnerd mentioned this pull request Sep 1, 2023
9 tasks
@compnerd compnerd force-pushed the reinventing-the-wheel-poorly branch from b876369 to d2f46c5 Compare September 2, 2023 18:48
This begins reworking the API to be less POSIX centric and more
generally usable.  The API was defined in terms of `dlopen`/`dlsym`
rather than the better suited `llvm::sys::DynamicLibrary` APIs which
would avoid most of the work that needs to be done here for platform
specifics.
@compnerd compnerd force-pushed the reinventing-the-wheel-poorly branch from d2f46c5 to c6222bf Compare September 2, 2023 18:50
@compnerd
Copy link
Member Author

compnerd commented Sep 2, 2023

@swift-ci please test

Include `stdint.h` for non-MSVC compilers.
@compnerd
Copy link
Member Author

compnerd commented Sep 3, 2023

@swift-ci please test

@compnerd
Copy link
Member Author

compnerd commented Sep 3, 2023

@swift-ci please test Linux platform

@compnerd
Copy link
Member Author

compnerd commented Sep 4, 2023

@swift-ci please test

@compnerd
Copy link
Member Author

compnerd commented Sep 4, 2023

@swift-ci please test

@compnerd compnerd merged commit d5ab98d into swiftlang:main Sep 4, 2023
@compnerd compnerd deleted the reinventing-the-wheel-poorly branch September 4, 2023 15:00
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.

1 participant