llvm-capstone/lld/test/COFF/pdb-exe-path-dots.test
Zachary Turner bf9abccacd [coff] Remove dots in path pointing to PDB file.
Some Microsoft tools (e.g. new versions of WPA) fail when the
COFF Debug Directory contains a path to the PDB that contains
dots, such as D:\foo\./bar.pdb.  Remove dots before writing this
path.

This fixes pr38126.

llvm-svn: 336873
2018-07-12 00:44:15 +00:00

10 lines
371 B
Plaintext

RUN: yaml2obj < %p/Inputs/pdb1.yaml > %t1.obj
RUN: yaml2obj < %p/Inputs/pdb2.yaml > %t2.obj
RUN: rm -rf %t
RUN: mkdir %t
RUN: mkdir %t/foo
RUN: lld-link /debug /pdb:%t/foo/./out.pdb /out:%t/out.exe /entry:main /nodefaultlib \
RUN: %t1.obj %t2.obj
RUN: llvm-readobj -coff-debug-directory %t/out.exe | FileCheck %s
CHECK: PDBFileName: {{.*}}tmp{{/|\\}}foo{{/|\\}}out.pdb