Skip to content

Commit 2aeec43

Browse files
tristanlabellebnbarham
authored andcommitted
Use llvm's abs_path_preserve_drive (#68038)
(cherry picked from commit 136642c)
1 parent fea49fd commit 2aeec43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/lit.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2706,8 +2706,8 @@ run_filecheck = '%s %s --allow-unused-prefixes --sanitize BUILD_DIR=%s --sanitiz
27062706
# we provide we use realpath here. Because PathSanitizingFileCheck only
27072707
# understands sanitize patterns with forward slashes, and realpath normalizes
27082708
# the slashes, we have to replace them back to forward slashes.
2709-
shell_quote(os.path.realpath(swift_obj_root).replace("\\", "/")),
2710-
shell_quote(os.path.realpath(config.swift_src_root).replace("\\", "/")),
2709+
shell_quote(lit.util.abs_path_preserve_drive(swift_obj_root).replace("\\", "/")),
2710+
shell_quote(lit.util.abs_path_preserve_drive(config.swift_src_root).replace("\\", "/")),
27112711
shell_quote(config.filecheck),
27122712
'--enable-windows-compatibility' if kIsWindows else '')
27132713

0 commit comments

Comments
 (0)