mirror of
https://github.com/github/codeql.git
synced 2025-12-24 20:56:33 +01:00
The hash map mechanism that was already in use for reading swiftmodule files on macOS is now in use also on Linux. The output replacing mechanism has been also reworked so that: * frontend module emission modes have the remapping done directly in the internal frontend options instead of painstakingly modifying input flags (this requires a patch on the swift headers though) * object emission mode is silenced to be just a type checking pass, thus producing no output files * all other passes but some debugging and version related ones become noops The open file read redirection uses a global weak pointer instance to maximize robustness in the face of possibly multi-threaded calls to open happening while `main` is exiting. Possibly overkill, but better safe than sorry.
9 lines
188 B
Python
9 lines
188 B
Python
load("//swift:rules.bzl", "swift_cc_library")
|
|
|
|
swift_cc_library(
|
|
name = "config",
|
|
srcs = glob(["*.cpp"]),
|
|
hdrs = glob(["*.h"]),
|
|
visibility = ["//swift:__subpackages__"],
|
|
)
|