Skip to content

Commit 28018f2

Browse files
authored
[6.0][bazel] Add new targets (#2646)
1 parent 3897cc8 commit 28018f2

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

BUILD.bazel

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ swift_syntax_library(
3636
":SwiftSyntax",
3737
":SwiftSyntaxMacroExpansion",
3838
":SwiftSyntaxMacros",
39+
":_SwiftSyntaxCShims",
3940
],
4041
)
4142

@@ -161,7 +162,7 @@ swift_syntax_library(
161162
":SwiftSyntax509",
162163
":SwiftSyntax510",
163164
":SwiftSyntax600",
164-
":_AtomicBool",
165+
":_SwiftSyntaxCShims",
165166
],
166167
)
167168

@@ -281,15 +282,6 @@ swift_syntax_test(
281282
],
282283
)
283284

284-
cc_library(
285-
name = "_AtomicBool",
286-
srcs = glob(["Sources/_AtomicBool/src/*.c"]),
287-
hdrs = glob(["Sources/_AtomicBool/include/*.h"]),
288-
includes = ["Sources/_AtomicBool/include"],
289-
tags = ["swift_module=_AtomicBool"],
290-
visibility = ["//visibility:private"],
291-
)
292-
293285
cc_library(
294286
name = "_InstructionCounter",
295287
srcs = glob(["Sources/_InstructionCounter/src/*.c"]),
@@ -299,6 +291,14 @@ cc_library(
299291
visibility = ["//visibility:private"],
300292
)
301293

294+
cc_library(
295+
name = "_SwiftSyntaxCShims",
296+
hdrs = glob(["Sources/_SwiftSyntaxCShims/include/*.h"]),
297+
includes = ["Sources/_SwiftSyntaxCShims/include"],
298+
tags = ["swift_module=_SwiftSyntaxCShims"],
299+
visibility = ["//visibility:private"],
300+
)
301+
302302
swift_syntax_library(
303303
name = "_SwiftSyntaxTestSupport",
304304
testonly = True,

utils/bazel/swift_syntax_library.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def swift_syntax_library(name, deps, srcs = None, testonly = False):
2626
def swift_syntax_test(name, deps):
2727
srcs = native.glob(
2828
["Tests/{}/**/*.swift".format(name)],
29+
# These tests load source files they don't have access to in the iOS test bundle with bazel.
30+
exclude = ["**/StringLiteralRepresentedLiteralValueTests.swift"],
2931
allow_empty = False,
3032
)
3133

@@ -53,7 +55,5 @@ def swift_syntax_test(name, deps):
5355
# Keep in sync with Package.swift
5456
minimum_os_version = "13.0",
5557
tags = ["exclusive"],
56-
# These tests load source files they don't have access to in the iOS test bundle with bazel.
57-
test_filter = "-SwiftParserTest.StringLiteralRepresentedLiteralValueTests",
5858
runner = "//:ios_test_runner",
5959
)

0 commit comments

Comments
 (0)