...
<PreferredToolArchitecture>ARM64</PreferredToolArchitecture>
Solution
If PreferredToolArchitecture
is provided as an explicit argument to MSBuild
from the command line that seems to work.
CMake
we can pass extra parameters to MSBuild
after --
flagYou will need to use native CMake
build https://linaro.atlassian.net/wiki/spaces/WOAR/pages/28684353912/CMake#Build-from-source , and pass /p:PreferredToolArchitecture=ARM64
to MSBuild through CMake.
Example
cmake --build . -- /p:PreferredToolArchitecture=ARM64
...