Skip to content

Add Windows ARM64 support#201

Open
pdeep854 wants to merge 1 commit into
google:masterfrom
pdeep854:win-arm
Open

Add Windows ARM64 support#201
pdeep854 wants to merge 1 commit into
google:masterfrom
pdeep854:win-arm

Conversation

@pdeep854

Copy link
Copy Markdown

Add Windows ARM64 (MSVC) build support

  • src/port.h: Add _M_ARM64 to CPU architecture whitelist for endianness
    detection. Add _WIN32 fallback for little-endian since MSVC does not
    define BYTE_ORDER. Add MSVC-optimized Log2Floor using
    _BitScanReverse intrinsic.

  • CMakeLists.txt: Gate GCC/Clang-specific compiler flags behind if(MSVC)
    check. Add MSVC flags (/W3, _CRT_SECURE_NO_WARNINGS). Update
    cmake_minimum_required to VERSION 3.5.0. Fix COMMON_FLAGS variable
    name typo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant