facebook / folly

An open-source C++ library developed and used at Facebook.
https://groups.google.com/forum/?fromgroups#!forum/facebook-folly
Apache License 2.0
27.86k stars 5.51k forks source link

ARM support in Visual Studio - __cpuid, __cpuidex not found #870

Open martinsuchan opened 6 years ago

martinsuchan commented 6 years ago

When trying to build CpuId.h in Visual Studio when targeting ARM, the build fails because __cpuid and __cpuidex methods are only available for x86 and x64.

Any chance to add support for ARM in Visual Studio as well.

Tested on Windows 10 April 2018 Update, Visual Studio 2017 15.7.3.

Orvid commented 6 years ago

Currently only 64-bit targets are supported on Windows, due to limitations in the socket portability layer. There is some work planned that should allow us to ease this restriction, but they are multiple months out. Beyond that, there are multiple upstream dependencies (neither double-conversion, boost, nor zstd currently support arm64) of Folly that don't currently support arm64, which makes it difficult for me to even test that.