Add support for building for Windows ARM64 platforms by anthony-linaro · Pull Request #17 · RenderKit/openpgl (original) (raw)
This only works when using clang-cl
as the compiler, as that is the only compiler that works with embree on Windows ARM64 platforms.
Using LLVM 18.1.8
Tested with the following command line (using the copy of TBB produced as part of a Blender deps build, with the changes described here applied: uxlfoundation/oneTBB#1142):
cmake -G Ninja -DCMAKE_INSTALL_PREFIX=<install prefix> -DOPENPGL_TBB_ROOT=<tbb 2020u3 root from blender deps build> -DOpenImageDenoise_DIR=<path to OIDN from blender deps build> -DCMAKE_C_COMPILER="C:/Program Files/LLVM/bin/clang-cl.exe" -DCMAKE_CXX_COMPILER="C:/Program Files/LLVM/bin/clang-cl.exe" ..
All builds fine, and it appears to be working correctly in blender.