mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
This replaces usages of `llvm::fs` and string manipulation with `std::filesystem`, also replacing `std::string` with `std::filesystem::path` where it made sense. Moreover MD5 hashing used in macOS file remapping was replaced by SHA256 hashing using a small header-only SHA256 C++ library with an MIT license, https://github.com/okdshin/PicoSHA2. File contents hashing was relocated to the newly created `file` library for later planned reuse.
25 lines
649 B
Python
25 lines
649 B
Python
load("//swift:rules.bzl", "swift_cc_library")
|
|
|
|
swift_cc_library(
|
|
name = "remapping",
|
|
srcs = ["SwiftOutputRewrite.cpp"] + select({
|
|
"@platforms//os:linux": [
|
|
"SwiftOpenInterception.Linux.cpp",
|
|
],
|
|
"@platforms//os:macos": [
|
|
"SwiftOpenInterception.macOS.cpp",
|
|
],
|
|
}),
|
|
hdrs = glob(["*.h"]),
|
|
visibility = ["//swift:__subpackages__"],
|
|
deps = [
|
|
"//swift/third_party/swift-llvm-support",
|
|
"//swift/extractor/infra/file",
|
|
] + select({
|
|
"@platforms//os:linux": [],
|
|
"@platforms//os:macos": [
|
|
"@fishhook//:fishhook",
|
|
],
|
|
}),
|
|
)
|