mirror of
https://github.com/morluto/rea.git
synced 2026-12-02 11:33:10 +00:00
lib.exe records the absolute object path it was given, such as C:\build\Release\decode.obj, as the member name. The ar reader passed that name to the shared path validator, which rejects absolute names, so every such member was dropped and a static library built this way looked empty with unknown coverage. An absolute member name names a build-host location, not archive structure. The reader now lists it under its last component, as `llvm-ar x` writes it, keeps the recorded name in source_path, and adds one reader-level limitation counting such members. Coverage stays complete. A last component that is itself unsafe (empty, `.`, `..`) is still refused and counted as before. The absolute-name rule now has one owner in ArtifactPaths: absoluteArtifactPathBasename classifies drive-absolute and POSIX-rooted names, and normalizeArtifactPath uses it for its refusal. Fixes #15618