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

Bzlmod local sysroot #1

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Bzlmod local sysroot #1

merged 1 commit into from
Apr 17, 2024

Conversation

kklochkov
Copy link
Owner

@kklochkov kklochkov commented Apr 16, 2024

The idea of the PR to expose locally installed sysroot libs (some libs might not have Bazel support or relatively time-consuming to bazelize for instance SDL2) for consumption in Bazel.

The PR introduces sysroot extension for bzlmod. The extension allows to explicitly to declare which libraries to expose to Bazel depending on a target platform.

Another approach would be (removed in this PR) to use use_repo_rule + new_local_repository once bazelbuild/bazel#18285 is available.

@kklochkov kklochkov force-pushed the bzlmod-local-sysroot branch from 02a35d8 to a176324 Compare April 16, 2024 06:23
@kklochkov kklochkov force-pushed the bzlmod-local-sysroot branch from a176324 to 5cca779 Compare April 17, 2024 22:01
@kklochkov kklochkov merged commit 8c32177 into main Apr 17, 2024
@kklochkov kklochkov deleted the bzlmod-local-sysroot branch April 17, 2024 22:02
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