diff --git a/.bazelversion b/.bazelversion index f22d756da39..a8907c025d5 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -6.5.0 +7.0.2 diff --git a/swift/extractor/config/BUILD.bazel b/swift/extractor/config/BUILD.bazel index 492db13f666..a38bb8c5d24 100644 --- a/swift/extractor/config/BUILD.bazel +++ b/swift/extractor/config/BUILD.bazel @@ -2,7 +2,7 @@ load("//swift:rules.bzl", "swift_cc_library") swift_cc_library( name = "config", - srcs = glob(["*.cpp"]), + srcs = [], hdrs = glob(["*.h"]), visibility = ["//swift:__subpackages__"], ) diff --git a/swift/third_party/BUILD.swift-llvm-support.bazel b/swift/third_party/BUILD.swift-llvm-support.bazel index 91337d0aa41..af98184b673 100644 --- a/swift/third_party/BUILD.swift-llvm-support.bazel +++ b/swift/third_party/BUILD.swift-llvm-support.bazel @@ -1,12 +1,13 @@ -load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix") - cc_library( name = "swift-llvm-support", - srcs = glob([ - "*.a", - "*.so", - "*.dylib", - ]), + srcs = glob( + [ + "*.a", + "*.so", + "*.dylib", + ], + allow_empty = True, # Either *.so or *.dylib will be empty + ), hdrs = glob([ "include/**/*", "stdlib/**/*",