Function rustc_session::output::check_file_is_writeable
source · Expand description
Make sure files are writeable. Mac, FreeBSD, and Windows system linkers check this already – however, the Linux linker will happily overwrite a read-only file. We should be consistent.