Menu

#62 Fix ARM64 support for Visual Studio 2017

Unstable_(example)
closed
None
5
2017-11-06
2017-11-04
Pete Batard
No
  • Make sure stdint.h is always used with MSVC on ARM/ARM64, since all the versions of Visual Studio that support ARM or ARM64 have that header. Without this, uint64_t would be defined to unsigned long, which is 32-bits in the Microsoft world...
  • Also fix aarch64/initplat.c so that memset/memcpy only apply to gcc. Otherwise MSVC throws an error for __SIZE_TYPE__
1 Attachments

Discussion

  • Pete Batard

    Pete Batard - 2017-11-04

    Updating this patch to v2, since it turns out MSVC will also emit memset and memcpy intrinsics that we can use an implementation for. This is true for both ARM and ARM64.
    To make this work, I'm defining __SIZE_TYPE__ to UINTN if not already defined.

     
  • Nigel Croxon

    Nigel Croxon - 2017-11-06
    • status: open --> closed
    • assigned_to: Nigel Croxon
     
  • Nigel Croxon

    Nigel Croxon - 2017-11-06

    Patch V2 accepted.
    commit id 39ce220cb6fde14bedf2ef61695f3d20726e41ef

     

Log in to post a comment.

MongoDB Logo MongoDB