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

How to build Annoy on windows arm64ec using MSVC #609

Open
YangYang129 opened this issue Oct 17, 2022 · 0 comments
Open

How to build Annoy on windows arm64ec using MSVC #609

YangYang129 opened this issue Oct 17, 2022 · 0 comments

Comments

@YangYang129
Copy link

YangYang129 commented Oct 17, 2022

We try MSVC to run python setup.py build on x64, it works. But we tried to build for target arm64ec, this project does not use the cl.exe command of MSVC. How to build Annoy on windows arm64ec using MSVC. Could you please help look at this issue? Thanks in advance.
Versions and configuration
OS: Windows Server 2022 Datacenter
VS: Visual Studio 2019(16.11.20)

Repro steps:

  1. Open VS2019 x64 tools command
  2. set VSCMD_SKIP_SENDTELEMETRY=1 & "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=arm64
  3. git clone https://github.com/spotify/annoy F:\annoy
  4. cd F:\annoy
  5. mkdir build_arm64ec && cd build_arm64ec
  6. cmake -G "Visual Studio 16 2019" -A ARM64EC -DCMAKE_SYSTEM_VERSION=10.0.22618.0 -DCMAKE_BUILD_TYPE=Release ..
  7. msbuild /m /p:Platform=ARM64EC /p:Configuration=Release Annoy.sln /t:Rebuild

cmake log:

-- The CXX compiler identification is MSVC 19.35.32014.96
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/arm64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_BUILD_TYPE


-- Build files have been written to: F:/annoy/build_arm64ec

build log:
annoy_build.log

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

No branches or pull requests

1 participant