bazelbuild / rules_swift

Bazel rules to build Swift on Apple and Linux platforms
Apache License 2.0
311 stars 136 forks source link

Use `getattr` for `aspect_hints` in `swift_clang_module_aspect` #1224

Closed luispadron closed 4 months ago

luispadron commented 4 months ago

To make supporting Bazel 6 easier use getattr to conditionally get the aspect_hints attr. This can be removed when we drop support for Bazel 6 as aspect_hints are always available as an attr in Bazel 7+