The /ONERROR Option

Option

/ON[[ERROR]]:N[[OEXE]]

The /ONERROR option tells LINK what to do if an error occurs. By default, if certain errors occur, LINK writes an executable file to disk and overwrites any existing file having the same name. The resulting executable file has the error bit set in its header. Specify /ONERROR:NOEXE to prevent such a file from being written to disk and preserve any existing file having the same name. The /ONERROR option can be useful in makefiles.