Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle MSVC ARM64 cross compilation build #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

cosmo0920
Copy link

@cosmo0920 cosmo0920 commented Jul 5, 2024

Currently, MSVC does not have ARM64 native compilers. So, we need to confirm ARM64 Windows(_M_ARM64) target. The current building sequence of ARM64 Windows is:

  • Specify Host=x64 Target=arm64 for Visual Studio
  • Launch x64 compiler on Prism emulator
  • CMake should handle as cross compiling but it'll be handled within MSVC mechanism

Thus, we need to handle this condition with the ARM64_MSVC flag.

Currently, MSVC does not have ARM64 native compilers.
So, we need to confirm ARM64 Windows(_M_ARM64) target.
The current building sequence of ARM64 Windows is:

* Specify Host=x64 Target=arm64 for Visual Studio
* Launch x64 compiler on Prism emulator
* CMake should handle as cross compiling but it'll be handled within
  MSVC mechanism

Thus, we need to handle this condition with the CROSSCOMPILING_MSVC
flag.

Signed-off-by: Hiroshi Hatake <[email protected]>
@cosmo0920 cosmo0920 marked this pull request as draft July 5, 2024 08:51
@cosmo0920 cosmo0920 force-pushed the handle-msvc-arm64-build branch 3 times, most recently from 704ca6b to e0def59 Compare July 5, 2024 10:13
@cosmo0920 cosmo0920 force-pushed the handle-msvc-arm64-build branch from e0def59 to 6c6dff1 Compare July 5, 2024 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant