diff --git a/.bazelrc b/.bazelrc index b0bbe701f..781e84433 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,9 +1,6 @@ # https://github.com/bazelbuild/stardoc/issues/112 common --incompatible_allow_tags_propagation -common --flag_alias=swiftcopt=//swift:copt -common --flag_alias=host_swiftcopt=//swift:exec_copt - # Fail if a glob doesn't match anything (https://github.com/bazelbuild/bazel/issues/8195) build --incompatible_disallow_empty_glob diff --git a/MODULE.bazel b/MODULE.bazel index 82a6ee8fc..d8e81b20b 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -3,11 +3,24 @@ module( name = "rules_swift", version = "0", - bazel_compatibility = [">=7.0.0"], + bazel_compatibility = [ + ">=7.7.0", + ">=8.5.0", + ], compatibility_level = 3, repo_name = "build_bazel_rules_swift", ) +flag_alias( + name = "swiftcopt", + starlark_flag = "//swift:copt", +) + +flag_alias( + name = "host_swiftcopt", + starlark_flag = "//swift:exec_copt", +) + bazel_dep(name = "bazel_features", version = "1.30.0") bazel_dep(name = "bazel_skylib", version = "1.7.1") bazel_dep(name = "apple_support", version = "1.24.2", repo_name = "build_bazel_apple_support")