-
Notifications
You must be signed in to change notification settings - Fork 93
Feature/bazel8 #951
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
Open
iMostfa
wants to merge
2
commits into
bazel-ios:master
Choose a base branch
from
iMostfa:feature/bazel8
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature/bazel8 #951
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4721cd0
to
d6f4aa1
Compare
This commit adds full support for Bazel 8 while maintaining backward compatibility with Bazel 7. Changes: - Fix ObjcInfo provider compatibility: Add hasattr checks for fields removed in Bazel 8 (force_load_library, imported_library, library, static_framework_file, etc.) - Handle AppleDynamicFramework provider removal: Add conditional checks and fallbacks for the removed provider - Update MODULE.bazel dependencies to Bazel 8-compatible versions: - apple_support: 1.15.1 → 1.21.1 - rules_cc: 0.0.10 → 0.0.16 - bazel_skylib: 1.4.2 → 1.7.1 - rules_pkg: 0.9.1 → 1.0.1 - stardoc: 0.6.2 → 0.7.2 - Add bazel_version.bzl utility for runtime version detection - Update CI to test with both Bazel 7.1.0 and 8.0.0 - Add Bazel 8 migration guide to README - Add compatibility test script Fixes compatibility issues when using rules_ios with Bazel 8.0.0 Cleanup
23bec13
to
5aca660
Compare
This commit addresses linking problems that arose with Bazel 8 where transitive Swift and ObjC dependencies were not being properly linked. Changes: - objc_provider_utils.bzl: Return struct instead of None for dynamic frameworks in Bazel 8 to maintain framework information - framework_middleman.bzl: - Add SwiftInfo collection and propagation - Collect libraries from ObjcInfo and add to CcInfo linking context - Handle .lo files (from alwayslink libraries) properly - Remove unsupported dynamic_framework_file from ObjcInfo in Bazel 8 - Add toolchains to dep_middleman rule - framework.bzl: Re-add .lo file collection (critical for alwayslink) These changes ensure all transitive dependencies are properly included in the linking phase, fixing "undefined symbols" errors.
5aca660
to
e453871
Compare
@jschear Would appreciate your support here. |
AndreParenteNeon
approved these changes
Sep 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems nice!
Hi @iMostfa, thanks for contributing -- I'll take a look tomorrow or early next week! |
i discovered that tests discovery isn't working, trying to get what caused it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR Adds initial support for Bazel 8
tests appears to be passing, but i need some expertise as most of my changes were just fixing errors, and trusting LLMs 😂