mirror of
https://github.com/github/codeql.git
synced 2026-03-30 20:28:15 +02:00
Merge pull request #21373 from github/redsun82/load-cc-explicitly
Bazel: load `rules_cc` and `rules_shell` explicitly
This commit is contained in:
2
swift/third_party/BUILD.binlog.bazel
vendored
2
swift/third_party/BUILD.binlog.bazel
vendored
@@ -1,3 +1,5 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
|
||||
|
||||
cc_library(
|
||||
name = "binlog",
|
||||
srcs = glob(["include/**/*.cpp"]),
|
||||
|
||||
10
swift/third_party/BUILD.fmt.bazel
vendored
10
swift/third_party/BUILD.fmt.bazel
vendored
@@ -1,10 +0,0 @@
|
||||
cc_library(
|
||||
name = "fmt",
|
||||
srcs = [
|
||||
"src/format.cc",
|
||||
"src/os.cc",
|
||||
],
|
||||
hdrs = glob(["include/**/*.h"]),
|
||||
includes = ["include"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
2
swift/third_party/BUILD.picosha2.bazel
vendored
2
swift/third_party/BUILD.picosha2.bazel
vendored
@@ -1,3 +1,5 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
|
||||
cc_library(
|
||||
name = "picosha2",
|
||||
hdrs = glob(["*.h"]),
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
|
||||
cc_library(
|
||||
name = "swift-llvm-support-static",
|
||||
srcs = glob(
|
||||
|
||||
3
swift/third_party/load.bzl
vendored
3
swift/third_party/load.bzl
vendored
@@ -1,6 +1,7 @@
|
||||
load("@bazel_skylib//rules:write_file.bzl", "write_file")
|
||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
|
||||
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
|
||||
load("@rules_shell//shell:sh_test.bzl", "sh_test")
|
||||
load("//misc/bazel:lfs.bzl", "lfs_archive", "lfs_files")
|
||||
|
||||
_override = {
|
||||
@@ -117,7 +118,7 @@ def test_no_override():
|
||||
content = test_body,
|
||||
is_executable = True,
|
||||
)
|
||||
native.sh_test(
|
||||
sh_test(
|
||||
name = "test-no-override",
|
||||
srcs = [":test-no-override-gen"],
|
||||
tags = ["override"],
|
||||
|
||||
Reference in New Issue
Block a user