mirror-llvm-project/lld/unittests
Fangrui Song c847ddf8f1
[ELF] Write the output to lld::outs() when -o is - (#209064)
When the output file is "-", write the image to lld::outs() (the
stdoutOS
argument of lld:🧝:link()) instead of committing the
FileOutputBuffer,
which writes to the process's stdout. This lets lld used as a library
capture
the output in a raw_ostream without an open syscall.

This reimplements the stale #72061 and adds a unittest.
2026-07-12 23:40:56 +00:00
..
AsLibAll
AsLibELF
CMakeLists.txt