Skip to content

Add WoA Build Support for Embree#603

Open
ranjeet-mcw wants to merge 1 commit into
RenderKit:masterfrom
ranjeet-mcw:feature/embree_WOA_Support
Open

Add WoA Build Support for Embree#603
ranjeet-mcw wants to merge 1 commit into
RenderKit:masterfrom
ranjeet-mcw:feature/embree_WOA_Support

Conversation

@ranjeet-mcw
Copy link
Copy Markdown

Enable building Embree natively on Windows on ARM (ARM64) using
clang-cl, Ninja, and Visual Studio 2022 toolchain.

Changes:

  • platform.h: add NOMINMAX guard to prevent windows.h min/max macro
    conflicts with std::numeric_limits
  • sse2neon.h: add windows.h include for ARM64 Windows clang-cl builds
  • clang.cmake: add ARM64 Windows detection and compiler flag guards
    for clang-cl
  • dpcpp.cmake: guard x86 ISA flags against ARM64 Windows target
  • taskschedulertbb.cpp: suppress Windows max macro expansion using
    parentheses idiom

Tested on:
OS: Windows 11 ARM64
Compiler: clang-cl 21.1.0 (LLVM)
TBB: 2022.3 (vcpkg arm64-windows)
Runtime: embree_minimal.exe verified correct

Fixes #601

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.

Add WoA Build Support for embree

1 participant