mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Turns out in https://github.com/github/codeql/pull/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)
50 lines
959 B
Plaintext
50 lines
959 B
Plaintext
load("@rules_cc//cc:defs.bzl", "cc_library")
|
|
|
|
cc_library(
|
|
name = "swift-llvm-support-static",
|
|
srcs = glob(
|
|
[
|
|
"*.a",
|
|
],
|
|
),
|
|
hdrs = glob([
|
|
"include/**/*",
|
|
"stdlib/**/*",
|
|
]),
|
|
includes = [
|
|
"include",
|
|
"stdlib/public/SwiftShims",
|
|
],
|
|
deps = [
|
|
"@zstd",
|
|
],
|
|
)
|
|
|
|
cc_library(
|
|
name = "swift-llvm-support",
|
|
srcs = glob(
|
|
[
|
|
"*.so",
|
|
"*.dylib",
|
|
],
|
|
allow_empty = True, # Either *.so or *.dylib will be empty
|
|
),
|
|
linkopts = [
|
|
"-lm",
|
|
"-lz",
|
|
] + select({
|
|
"@platforms//os:linux": [
|
|
"-luuid",
|
|
"-lrt",
|
|
"-lpthread",
|
|
"-ldl",
|
|
],
|
|
"@platforms//os:macos": [
|
|
"-L/usr/lib/swift",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
visibility = ["//visibility:public"],
|
|
deps = [":swift-llvm-support-static"],
|
|
)
|