[llvm] Normalize file path to fix problems with different folder separators. (PR #215225)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 14 02:04:38 PDT 2026
================
@@ -28,18 +29,22 @@
; RUN: sed -e "s,SRC_COMPDIR,%/p/Inputs,g" %p/Inputs/source-interleave.ll > %t-correct-prefix.ll
; RUN: llc -o %t-correct-prefix.o -filetype=obj -mtriple=x86_64-pc-linux %t-correct-prefix.ll
; RUN: llvm-objdump --prefix myprefix --source %t-correct-prefix.o 2>&1 | \
-; RUN: FileCheck %s --check-prefix=CHECK-BROKEN-PREFIX -DFILE=%t-correct-prefix.o -DPREFIX=myprefix%/p -DCOMPDIR=/Inputs
+; RUN: FileCheck %s --check-prefix=CHECK-ABSOLUTE-PREFIX -DFILE=%t-correct-prefix.o
+;; The compilation directory is an absolute host path, so the middle of the
+;; reported path is not spelled out here.
----------------
jh7370 wrote:
Why not? We were before (via lit substitution).
https://github.com/llvm/llvm-project/pull/215225
More information about the llvm-commits
mailing list