Skip to content

Commit 4e4d055

Browse files
authored
Merge pull request #21373 from github/redsun82/load-cc-explicitly
Bazel: load `rules_cc` and `rules_shell` explicitly
2 parents 968856e + 4d0c72e commit 4e4d055

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
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(

swift/third_party/load.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
load("@bazel_skylib//rules:write_file.bzl", "write_file")
22
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
33
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
4+
load("@rules_shell//shell:sh_test.bzl", "sh_test")
45
load("//misc/bazel:lfs.bzl", "lfs_archive", "lfs_files")
56

67
_override = {
@@ -117,7 +118,7 @@ def test_no_override():
117118
content = test_body,
118119
is_executable = True,
119120
)
120-
native.sh_test(
121+
sh_test(
121122
name = "test-no-override",
122123
srcs = [":test-no-override-gen"],
123124
tags = ["override"],

0 commit comments

Comments
 (0)