[compiler-rt] [HWASan] Compatible with Windows path retrieval (PR #172194)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 13 20:06:50 PST 2025
https://github.com/GkvJwa created https://github.com/llvm/llvm-project/pull/172194
Fix #134853
Since the Windows path separator is typically `\\`, replace it with `/`.
>From c66505da5dfc5eb01b7467302eaa04e6bac3f06d Mon Sep 17 00:00:00 2001
From: GkvJwa <gkvjwa at gmail.com>
Date: Sun, 14 Dec 2025 12:01:49 +0800
Subject: [PATCH] [HWASan] Compatible with Windows path retrieval
---
compiler-rt/lib/hwasan/scripts/hwasan_symbolize | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compiler-rt/lib/hwasan/scripts/hwasan_symbolize b/compiler-rt/lib/hwasan/scripts/hwasan_symbolize
index 19d948d1f0aaa..efc7c868696c3 100755
--- a/compiler-rt/lib/hwasan/scripts/hwasan_symbolize
+++ b/compiler-rt/lib/hwasan/scripts/hwasan_symbolize
@@ -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('\\', '/') + '/')
if 'ANDROID_BUILD_TOP' in os.environ:
paths_to_cut.append(os.environ['ANDROID_BUILD_TOP'] + '/')
More information about the llvm-commits
mailing list