mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Our mangler is split in two version: * `SwiftTrapMangler`, with the same behaviour as the previous `SwiftMangler`, constructing mangled names with trap label references * `SwiftRecursiveMangler` that replaces trap label references with recursive calls to its own `mangle` functions, effectively rolling out the entire chain of references The latter is used to create lazy trap file names. Hashing is used to avoid excessively long filenames.
17 lines
415 B
Python
17 lines
415 B
Python
load("//swift:rules.bzl", "swift_cc_library")
|
|
|
|
swift_cc_library(
|
|
name = "infra",
|
|
srcs = glob(["*.cpp"]),
|
|
hdrs = glob(["*.h"]),
|
|
visibility = ["//swift:__subpackages__"],
|
|
deps = [
|
|
"//swift/extractor/config",
|
|
"//swift/extractor/infra/file",
|
|
"//swift/extractor/trap",
|
|
"//swift/logging",
|
|
"//swift/third_party/swift-llvm-support",
|
|
"@picosha2",
|
|
],
|
|
)
|