cyb70289 commented on issue #44896:
URL: https://github.com/apache/arrow/issues/44896#issuecomment-2513462924

   From below log, looks `-march=armv8-a` is appended to compiler flags, even 
for msvc.
   Guess we need a different option for msvc cross build, 
[/arch:armv8.0](https://learn.microsoft.com/en-us/cpp/build/reference/arch-arm64?view=msvc-170)?
   ```
   -- CMAKE_C_FLAGS: /DWIN32 /D_WINDOWS  /EHsc /wd5105 /bigobj /utf-8 /W3 
/wd4800 /wd4996 /wd4065 -march=armv8-a 
   -- CMAKE_CXX_FLAGS:  /DWIN32 /D_WINDOWS /GR /EHsc 
/D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING  /EHsc /wd5105 /bigobj /utf-8 /W3 
/wd4800 /wd4996 /wd4065 -march=armv8-a 
   ```
   
   Related code at:
   
https://github.com/apache/arrow/blob/main/cpp/cmake_modules/SetupCxxFlags.cmake#L125-L126
   
https://github.com/apache/arrow/blob/main/cpp/cmake_modules/SetupCxxFlags.cmake#L543


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to