Skip to content

Conversation

@poechsel
Copy link

@poechsel poechsel commented Feb 1, 2024

If lld is asked to output the binary using mmap (which is the default), then lld fails with SIGBUS when running out of disk.

This is confusing for users - this PR checks that there's enough disk space before actually saving the file.
This might make LLD a bit slower.

Tested by building binaries locally and by manually making sure that sizes returned by disk_space and fileSize
have the same unit and are consistent with du -B 1 and df -B 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants