Skip to content

Commit f8c3ccc

Browse files
authored
[bazel] Update bazel version and BUILD for new modules (#2480)
1 parent e77b169 commit f8c3ccc

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

.bazelrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
common --enable_bzlmod
22
common --incompatible_use_host_features
3+
common --lockfile_mode=off
34

45
build --features=swift.use_explicit_swift_module_map
56
build --host_features=swift.use_explicit_swift_module_map

.bazelversion

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.2.0
1+
7.0.2

BUILD.bazel

+13-1
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,27 @@ load("//utils/bazel:swift_syntax_library.bzl", "swift_syntax_library")
22

33
package(default_visibility = ["//visibility:public"])
44

5+
cc_library(
6+
name = "_AtomicBool",
7+
srcs = ["Sources/_AtomicBool/src/AtomicBool.c"],
8+
hdrs = ["Sources/_AtomicBool/include/AtomicBool.h"],
9+
includes = ["Sources/_AtomicBool/include"],
10+
tags = ["swift_module=_AtomicBool"],
11+
)
12+
513
swift_syntax_library(
614
name = "SwiftIDEUtils",
715
deps = [
16+
":SwiftParser",
817
":SwiftSyntax",
918
],
1019
)
1120

1221
swift_syntax_library(
1322
name = "SwiftSyntax",
14-
deps = [],
23+
deps = [
24+
":_AtomicBool",
25+
],
1526
)
1627

1728
swift_syntax_library(
@@ -132,5 +143,6 @@ swift_syntax_library(
132143
":SwiftBasicFormat",
133144
":SwiftSyntax",
134145
":SwiftSyntaxBuilder",
146+
":SwiftSyntaxMacroExpansion",
135147
],
136148
)

MODULE.bazel

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
module(
22
name = "swift-syntax",
3-
version = "0", # Update on release/* branches
3+
version = "0",
44
compatibility_level = 1,
55
)
66

7-
bazel_dep(name = "rules_swift", version = "1.5.1", repo_name = "build_bazel_rules_swift")
7+
bazel_dep(name = "rules_swift", version = "1.16.0", repo_name = "build_bazel_rules_swift")
8+
bazel_dep(name = "apple_support", version = "1.11.1", repo_name = "build_bazel_apple_support")

0 commit comments

Comments
 (0)