Skip to content

Commit 5b5dc9c

Browse files
committed
Bazel: load rules_cc explicitly
Turns out in #21371 I was right about `java_*` rules not relying on autoload anywhere, but it turns out some `cc_*` rules still relied on autoload. This autoload is currently configured in the internal repository, but we want to remove it eventually. This patch: * adds explicit loads to `rules_cc` * removes an obsolete file (that depedency has its own bazel module since some time, we just forgot to remove the old file)
1 parent f0e665d commit 5b5dc9c

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

swift/third_party/BUILD.binlog.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
2+
13
cc_library(
24
name = "binlog",
35
srcs = glob(["include/**/*.cpp"]),

swift/third_party/BUILD.fmt.bazel

Lines changed: 0 additions & 10 deletions
This file was deleted.

swift/third_party/BUILD.picosha2.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_library")
2+
13
cc_library(
24
name = "picosha2",
35
hdrs = glob(["*.h"]),

swift/third_party/BUILD.swift-llvm-support.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_library")
2+
13
cc_library(
24
name = "swift-llvm-support-static",
35
srcs = glob(

0 commit comments

Comments
 (0)