mars
mars copied to clipboard
Mars failed to build with "fatal error C1189: #error: unsupported platform " with MSVC on arm64 windows
Mars failed to build with "fatal error C1189: #error: unsupported platform " with MSVC on arm64 windows. It can reproduces on version https://github.com/Tencent/mars/commit/4ac65b74c00184b6d697686df202eb0f4909001f. Could you please help look at this issue? Thank you very much
Environment Compiler version: VS2019 (16.11.9) Operating system: Windows server 2019
Steps to reproduce:
- open VS2019 x64 tools command
- git clone https://github.com/Tencent/mars F:\mars
- cd F:\mars\mars
- "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=arm64
- mkdir build_arm64 & cd build_arm64
- cmake -G "Visual Studio 16 2019" -A arm64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DCMAKE_BUILD_TYPE=Release ..
- msbuild /m /p:Platform=arm64 /p:Configuration=Release mars.sln /t:Rebuild >msbuild.log
Build.log: mars_msbuild.log
Error info: F:\mars\mars\openssl\include\openssl/opensslconf.h(15,1): fatal error C1189: #error: unsupported platform (compiling source file F:\mars\mars\log\src\xlogger_interface.cc) [F:\mars\mars\build_arm64\xlog\xlog.vcxproj]