[PATCH] D77876: Normalize working directory when running llvm-mc
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 06:57:58 PDT 2020
serge-sans-paille created this revision.
serge-sans-paille added reviewers: JDevlieghere, tstellar.
Herald added subscribers: llvm-commits, aprantl.
Herald added a project: LLVM.
Otherwise, depending on the lit location used to run the test, `llvm-mc` adds an `include_directories` entry in the dwarf output, which breaks tests in some setup.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77876
Files:
llvm/test/MC/MachO/gen-dwarf.s
Index: llvm/test/MC/MachO/gen-dwarf.s
===================================================================
--- llvm/test/MC/MachO/gen-dwarf.s
+++ llvm/test/MC/MachO/gen-dwarf.s
@@ -1,4 +1,4 @@
-// RUN: llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t
+// RUN: mkdir -p %t0 && cd %t0 && llvm-mc -g -triple i386-apple-darwin10 %s -filetype=obj -o %t
// RUN: llvm-dwarfdump -all %t | FileCheck %s
.globl _bar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77876.256562.patch
Type: text/x-patch
Size: 422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200410/fc88e21a/attachment.bin>
More information about the llvm-commits
mailing list