Details
Details
- Reviewers
MaskRay ributzka sbc100 - Group Reviewers
Restricted Project - Commits
- rGcd7ffa2e52ce: lld: Include name of output file in "failed to write output" diag
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I see this fairly often on Windows, where you can't write to a file that another process – such as a virus scanner – has open: http://45.33.8.238/win/65440/step_4.txt I think it'd be nice to include the file name in the diag.
Come to think of it, maybe we should retry the write after it fails? Might help on Windows. On the other hand, that just hides the problem and doesn't fully fix it, so not sure that's better.
Comment Actions
I guess we could make a test that runs elsewhere, by creating a read-only output directory? But maybe not worth it. lgtm either way.
lld/test/ELF/link-open-file.test | ||
---|---|---|
15 |