Skip to content
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

Support using the system rapidjson to build #101443

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

omajid
Copy link
Member

@omajid omajid commented Apr 23, 2024

We have a bundled copy of rapidjson in runtime, but some Linux distributions also ship with another version of that library. Support using that too, optionally.

This does not change the default behaviour - the bundled copy of rapidjson is used. A cmake argument of
CLR_CMAKE_USE_SYSTEM_RAPIDJSON=true needs to be set to use the system version of rapidjson.

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Apr 23, 2024
Copy link
Contributor

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

@omajid omajid marked this pull request as ready for review May 1, 2024 12:20
Copy link
Member

@elinor-fung elinor-fung left a comment

Choose a reason for hiding this comment

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

Is there any sort of doc or centralized place to see all the system libraries that the build should support being enabled/disabled?

@omajid
Copy link
Member Author

omajid commented May 7, 2024

My driving motivation for using system libraries is described by https://fedoraproject.org/wiki/Bundled_Libraries.

My current focus is to do this for all libraries under src/native/external. Maybe not for zlib since that's already the system version on Linux (which is my primary platform).

The current full list is also visible on #101797

@agocke
Copy link
Member

agocke commented Jul 1, 2024

@omajid Mind sorting out the conflict?

We have a bundled copy of rapidjson in runtime, but some Linux
distributions also ship with another version of that library. Support
using that too, optionally.

This does not change the default behaviour - the bundled copy of
rapidjson is used. A cmake argument of
CLR_CMAKE_USE_SYSTEM_RAPIDJSON=true needs to be set to use the system
version of rapidjson.
@omajid
Copy link
Member Author

omajid commented Jul 2, 2024

@agocke Done.

@agocke agocke merged commit d1ffbfb into dotnet:main Jul 3, 2024
143 of 146 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Aug 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Host community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants