[compiler-rt] [HWASan] Compatible with Windows path retrieval (PR #172194)
Chris Apple via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 14 11:51:01 PST 2025
================
@@ -476,7 +476,7 @@ def main():
# Source location.
paths_to_cut = args.source or []
if not paths_to_cut:
- paths_to_cut.append(os.getcwd() + '/')
+ paths_to_cut.append(os.getcwd().replace('\\', '/') + '/')
----------------
cjappl wrote:
If this is python3, can we just use pathlib? I think they deal with the platform specific separators in a nice abstracted way
https://github.com/llvm/llvm-project/pull/172194
More information about the llvm-commits
mailing list