ruiu added a comment. I think preventing almost all errors is too much. Most errors are still checked even if --noinhibit-exec is specified. For example, if you give nonexistent file to the linker, it is still an error. https://reviews.llvm.org/D35793