/debug and /debug:dwarf are orthogonal. An object file can contain both CodeView and DWARF debug info, so the combination of /debug:dwarf and /debug should generate both DWARF and a PDB, rather than /debug:dwarf always suppressing PDB creation. /nopdb is now redundant and can be removed. /debug /nopdb was previously used to support DWARF, but specifying /debug:dwarf is entirely equivalent to that combination now. Differential Revision: https://reviews.llvm.org/D41310 llvm-svn: 320896
20 lines
661 B
Plaintext
20 lines
661 B
Plaintext
# Check that /debug creates %t.pdb.
|
|
# RUN: rm -f %t.pdb
|
|
# RUN: lld-link /debug /entry:main /out:%t.exe %p/Inputs/ret42.obj
|
|
# RUN: ls %t.pdb
|
|
|
|
# Check that /debug:dwarf does not create %t.pdb.
|
|
# RUN: rm -f %t.pdb
|
|
# RUN: lld-link /debug:dwarf /entry:main /out:%t.exe %p/Inputs/ret42.obj
|
|
# RUN: not ls %t.pdb
|
|
|
|
# Check that /debug:dwarf /debug creates %t.pdb.
|
|
# RUN: rm -f %t.pdb
|
|
# RUN: lld-link /debug:dwarf /debug /entry:main /out:%t.exe %p/Inputs/ret42.obj
|
|
# RUN: ls %t.pdb
|
|
|
|
# Check that /debug:dwarf /pdb:%t.pdb does not create %t.pdb.
|
|
# RUN: rm -f %t.pdb
|
|
# RUN: lld-link /debug:dwarf /pdb:%t.pdb /entry:main /out:%t.exe %p/Inputs/ret42.obj
|
|
# RUN: not ls %t.pdb
|