cc-rs
cc-rs copied to clipboard
Add support for ARM64EC when building with MSVC
- Building for ARM64EC requires passing the
-arm64EC
flag to cl.exe and/machine:arm64ec
to lib.exe: https://learn.microsoft.com/en-us/windows/arm/arm64ec-build#developer-command-prompt - Updated tool discovery to handle
arm64ec
as a target arch by using theaarch64
paths. - When targeting
arm64ec
the lib path must ALSO include thearm64ec
VC libs BEFORE theaarch64
libs. - Added a new
TargetArch
wrapper type to avoid splitting the target string multiple times or callingcontains
when we could be using string comparison.