mixed_language_library currently expands to internal objc_library targets.
That makes non-Apple builds fail at analysis time due to objc_library requiring Apple toolchain behavior, which is expected in rules_cc:
https://github.com/bazelbuild/rules_cc/blob/ee57062efc3ab22132e28af782c70b6d73b052f5/cc/private/rules_impl/objc_semantics.bzl#L32
The issue is not with objc_library itself.
The issue is that mixed Swift + Clang-language interop is also a practical non-Apple use case, but mixed_language_library currently has no non-Apple path.
Would you consider:
- supporting a non-Apple backend for
mixed_language_library (for example a cc_library-based path for Clang-language sources), or
- explicitly documenting that
mixed_language_library is Apple-only?
mixed_language_librarycurrently expands to internalobjc_librarytargets.That makes non-Apple builds fail at analysis time due to
objc_libraryrequiring Apple toolchain behavior, which is expected inrules_cc:https://github.com/bazelbuild/rules_cc/blob/ee57062efc3ab22132e28af782c70b6d73b052f5/cc/private/rules_impl/objc_semantics.bzl#L32
The issue is not with
objc_libraryitself.The issue is that mixed Swift + Clang-language interop is also a practical non-Apple use case, but
mixed_language_librarycurrently has no non-Apple path.Would you consider:
mixed_language_library(for example acc_library-based path for Clang-language sources), ormixed_language_libraryis Apple-only?