Nerixyz wrote:

> So if we had used lld when running this test on Windows with DWARF, it 
> would've passed?

Sorry, I was wrong. The intermediate object, `main.o`, is compiled without 
debug info. However, the final executable `a.out` is linked with clang and 
`-gdwarf`. Because of this, clang will instruct LLD to build a PDB. 

I don't know how this works on other platforms if `-g` is included when 
linking. An alternative approach to compile without any debug info would be to 
set `DEBUG_INFO_FLAG` to an empty string. The test would fail on Windows too, 
because the default visibility for symbols is hidden and LLDB wouldn't find the 
variables.

https://github.com/llvm/llvm-project/pull/165604
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to