mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
File hashing is now done internally in `SwiftFileInterception` (and exported as a `getHashOfRealFile` function for future use in linkage awareness), and using a per-process in-memory cache. The persistent caching of paths is removed, so the solution is now robust against input file changes during the build. For the same reason, the hash to artifact mapping have the symlinks reversed now. The artifacts themselves are stored using the hash as filenames, and the original paths of the artifacts are reacreated in the scratch dir with symlinks mostly for debugging purposes (to understand what artifact each hash corresponds to, and to follow what was built by the extractor).
15 lines
358 B
Python
15 lines
358 B
Python
load("//swift:rules.bzl", "swift_cc_library")
|
|
|
|
swift_cc_library(
|
|
name = "remapping",
|
|
srcs = glob(["*.cpp"]),
|
|
hdrs = glob(["*.h"]),
|
|
visibility = ["//swift:__subpackages__"],
|
|
deps = [
|
|
"//swift/extractor/config",
|
|
"//swift/extractor/infra/file",
|
|
"//swift/third_party/swift-llvm-support",
|
|
"@picosha2",
|
|
],
|
|
)
|