Skip to content

How to build Annoy on windows arm64ec using MSVC #609

@YangYang129

Description

@YangYang129

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions