build
diff --git a/modules/swift-syntax/602.0.0.bcr.2/patches/aspect_hints.patch b/modules/swift-syntax/602.0.0.bcr.2/patches/aspect_hints.patch new file mode 100644 index 0000000..bf83b00 --- /dev/null +++ b/modules/swift-syntax/602.0.0.bcr.2/patches/aspect_hints.patch
@@ -0,0 +1,34 @@ +diff --git a/BUILD.bazel b/BUILD.bazel +index ada6873..58fd99a 100644 +--- a/BUILD.bazel ++++ b/BUILD.bazel +@@ -371,16 +371,17 @@ cc_library( + name = "_InstructionCounter", + srcs = glob(["Sources/_InstructionCounter/src/*.c"]), + hdrs = glob(["Sources/_InstructionCounter/include/*.h"]), ++ aspect_hints = ["@build_bazel_rules_swift//swift:auto_module"], + includes = ["Sources/_InstructionCounter/include"], +- tags = ["swift_module=_InstructionCounter"], + visibility = ["//visibility:private"], + ) + + cc_library( + name = "_SwiftLibraryPluginProviderCShims", ++ srcs = glob(["Sources/_SwiftLibraryPluginProviderCShims/*.c"]), + hdrs = glob(["Sources/_SwiftLibraryPluginProviderCShims/include/*.h"]), ++ aspect_hints = ["@build_bazel_rules_swift//swift:auto_module"], + includes = ["Sources/_SwiftLibraryPluginProviderCShims/include"], +- tags = ["swift_module=_SwiftLibraryPluginProviderCShims"], + visibility = ["//visibility:private"], + ) + +@@ -388,8 +389,8 @@ cc_library( + name = "_SwiftSyntaxCShims", + srcs = glob(["Sources/_SwiftSyntaxCShims/*.c"]), + hdrs = glob(["Sources/_SwiftSyntaxCShims/include/*.h"]), ++ aspect_hints = ["@build_bazel_rules_swift//swift:auto_module"], + includes = ["Sources/_SwiftSyntaxCShims/include"], +- tags = ["swift_module=_SwiftSyntaxCShims"], + visibility = ["//visibility:private"], + ) +
diff --git a/modules/swift-syntax/602.0.0.bcr.2/source.json b/modules/swift-syntax/602.0.0.bcr.2/source.json index 2b48858..f2cecbb 100644 --- a/modules/swift-syntax/602.0.0.bcr.2/source.json +++ b/modules/swift-syntax/602.0.0.bcr.2/source.json
@@ -4,7 +4,8 @@ "strip_prefix": "swift-syntax-602.0.0", "patches": { "load.patch": "sha256-SN3FSAdoNNbAdXR1sl8w9HlvrgNWsGFOr0bbtYGUTXI=", - "module_do_bazel.patch": "sha256-rgpkpmM5oq/n+/ExdEXPttgOzbXNReOSLQshQhmUQ7w=" + "module_do_bazel.patch": "sha256-rgpkpmM5oq/n+/ExdEXPttgOzbXNReOSLQshQhmUQ7w=", + "aspect_hints.patch": "sha256-JS89kWj9jhSZODEOY9CRN8+k1UnvMkUa2/LEAmy4PXs=" }, "patch_strip": 1 }