[PATCH] D154130: [lit] Avoid os.path.realpath on Windows due to MAX_PATH limitations
Tom Honermann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 10 14:30:23 PDT 2023
tahonermann added a comment.
> 95% of the %>t are around clang modulemap files, because that code resolves real paths in C++ by design, so I can't avoid it.
Can you link to evidence that this behavior is by design? It isn't obvious to me why modulemap files would demand different behavior; especially since that would exacerbate `MAX_PATH` problems.
I'm not fond of the `safe_abs_path` name; "safe" doesn't communicate anything and the implementation is no more safe than `os.path.abspath` or `os.path.realpath`. Suggested alternatives:
- `short_abs_path`
- `shortest_abs_path`
- `abs_path_no_subst_drive`
- `abs_path_preserve_drive`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154130/new/
https://reviews.llvm.org/D154130
More information about the cfe-commits
mailing list