Implement final argument precedence if multiple /debug arguments are passed on the command-line to match expected link.exe behavior. Support /debug:none and emit warning for /debug:fastlink with automatic fallback to /debug:full. Emit error if last /debug:option is unknown. Emit warning if last /debugtype:option is unknown. https://reviews.llvm.org/D50404 llvm-svn: 342894
13 lines
378 B
Plaintext
13 lines
378 B
Plaintext
# RUN: yaml2obj < %p/Inputs/pdb1.yaml > %t1.obj
|
|
# RUN: yaml2obj < %p/Inputs/pdb2.yaml > %t2.obj
|
|
|
|
; If /DEBUG:FASTLINK is specified, /DEBUG:FULL is used instead
|
|
# RUN: rm -f %t.pdb
|
|
# RUN: lld-link /DEBUG /pdb:%t.pdb /DEBUG:FASTLINK /entry:main /nodefaultlib %t1.obj %t2.obj \
|
|
# RUN: 2>&1 | FileCheck %s
|
|
|
|
# CHECK: /debug:fastlink unsupported; using /debug:full
|
|
|
|
# RUN: ls %t.pdb
|
|
|