mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
bf9abccacd
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
10 lines
371 B
Plaintext
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 |