[lld] [llvm] [Support] Set `OF_Delete` for `InMemoryBuffer`'s call to `openFileForWrite` under `commit` (PR #140109)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu May 15 23:33:01 PDT 2025


https://github.com/MaskRay approved this pull request.

Thanks!

I now see that https://reviews.llvm.org/D82567 introduced the Windows-specific test lld/test/ELF/link-open-file.test .

The test appears to open the output file with FILE_SHARE_DELETE using Python, then invoke lld. If lld opens the output file with FILE_SHARE_DELETE, it will be able to delete it.

https://github.com/llvm/llvm-project/pull/140109


More information about the llvm-commits mailing list