[win][arm64] Disable MSVC Linker 'Arm Hazard' warning by dpaoliello · Pull Request #140758 · rust-lang/rust (original) (raw)
While trying to get the aarch64-msvc build working correctly (#140136), I observed the following test failure:
From #140136 (comment)
= note: main.main.d17f5fbe6225cf88-cgu.0.rcgu.o : fatal error LNK1322: cannot avoid potential ARM hazard (Cortex-A53 MPCore processor bug #843419) in section 0x57; please consider using compiler option /Gy if it was not used
This is warning of a code sequence that triggers a bug in Cortex-A53 processors: https://developer.arm.com/documentation/epm048406/latest
However, since Windows 10 isn't supported on the Cortex-A53, this warning is not required, so it can be suppressed using the undocumented /arm64hazardfree
flag.