-
Notifications
You must be signed in to change notification settings - Fork 11.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whether to support finding pdb files from outputpath #94152
Comments
@llvm/issue-subscribers-debuginfo Author: None (GkvJwa)
When I converted an existing project on Windows to use clang for compilation, when linking, lld-link.exe had a lot more warning messages like the following than link.exe(msvc)
```
lld-link : warning : Cannot use debug info for 'aa.lib(aa.obj)' [LNK4099]
>>> failed to load reference 'aa.pdb': no such file or directory
lld-link : warning : Cannot use debug info for 'bb.lib(bb.obj)' [LNK4099]
out -- directory out1 -- directory
|
@llvm/issue-subscribers-lld-coff Author: None (GkvJwa)
When I converted an existing project on Windows to use clang for compilation, when linking, lld-link.exe had a lot more warning messages like the following than link.exe(msvc)
```
lld-link : warning : Cannot use debug info for 'aa.lib(aa.obj)' [LNK4099]
>>> failed to load reference 'aa.pdb': no such file or directory
lld-link : warning : Cannot use debug info for 'bb.lib(bb.obj)' [LNK4099]
out -- directory out1 -- directory
|
When I converted an existing project on Windows to use clang for compilation, when linking, lld-link.exe had a lot more warning messages like the following than link.exe(msvc)
After checked, I found that the existing project structure uses the following method to link
Executable file(a.exe) needs to link two static libraries(aa.lib/bb.lib)
These pdb files are in the same folder as the final generated a.exe
When using link.exe, it will also check whether the pdb file of the static library exists in the directory where the exe/dll is finally generated, but lld-link.exe will not, causing the above warning to appear.
The text was updated successfully, but these errors were encountered: