Skip to content

Commit

Permalink
Cleanup and format Bazel files (#6007)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplyDanny authored Feb 22, 2025
1 parent 4cb5f82 commit 97e535c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
11 changes: 9 additions & 2 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ load(
"swift_library",
"universal_swift_compiler_plugin",
)
load("@build_bazel_rules_cc//cc:cc_library.bzl", "cc_library")
load("@build_bazel_rules_shell//shell:sh_test.bzl", "sh_test")

bool_flag(
name = "universal_tools",
Expand All @@ -32,13 +34,15 @@ copts = [
"ForwardTrailingClosures",
"-enable-upcoming-feature",
"ImplicitOpenExistentials",
"-Xfrontend", "-warn-implicit-overrides",
"-Xfrontend",
"-warn-implicit-overrides",
]

strict_concurrency_copts = [
"-Xfrontend",
"-strict-concurrency=complete",
]

targeted_concurrency_copts = [
"-Xfrontend",
"-strict-concurrency=targeted",
Expand Down Expand Up @@ -188,7 +192,10 @@ cc_library(

filegroup(
name = "LintInputs",
srcs = glob(["Plugins/**/*.swift", "Source/**/*.swift"]) + [
srcs = glob([
"Plugins/**/*.swift",
"Source/**/*.swift",
]) + [
".swiftlint.yml",
"Package.swift",
"//Tests:TestSources",
Expand Down
4 changes: 3 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ bazel_dep(name = "apple_support", version = "1.16.0", repo_name = "build_bazel_a
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_apple", version = "3.8.0", repo_name = "build_bazel_rules_apple")
bazel_dep(name = "rules_cc", version = "0.1.1", repo_name = "build_bazel_rules_cc")
bazel_dep(name = "rules_shell", version = "0.4.0", repo_name = "build_bazel_rules_shell")
bazel_dep(name = "rules_swift", version = "2.1.1", repo_name = "build_bazel_rules_swift")
bazel_dep(name = "sourcekitten", version = "0.37.0", repo_name = "com_github_jpsim_sourcekitten")
bazel_dep(name = "swift-syntax", version = "600.0.0", repo_name = "SwiftSyntax")
bazel_dep(name = "swift_argument_parser", version = "1.3.1.1", repo_name = "sourcekitten_com_github_apple_swift_argument_parser")
bazel_dep(name = "swift-syntax", version = "600.0.0", repo_name = "SwiftSyntax")
bazel_dep(name = "yams", version = "5.3.0", repo_name = "sourcekitten_com_github_jpsim_yams")

swiftlint_repos = use_extension("//bazel:repos.bzl", "swiftlint_repos_bzlmod")
Expand Down
2 changes: 0 additions & 2 deletions bazel/deps.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

def _extra_swift_sources_impl(ctx):
ctx.file("WORKSPACE", "")
ctx.file("empty.swift", "public func extraRules() -> [any Rule.Type] { [] }")
Expand Down

0 comments on commit 97e535c

Please sign in to comment.