From e12ddede247aa73f68f972a16f1d0c0005abf477 Mon Sep 17 00:00:00 2001 From: Sean Stirling Date: Mon, 6 Oct 2025 17:10:08 +0200 Subject: [PATCH] Cycles: Disable jumptablerdata cxx option for ARM64 devices compiled with MSVC. This change disables an x64 specific flag for ARM64 devices when compiling with MSVC. Pull Request: https://projects.blender.org/blender/blender/pulls/147276 --- intern/cycles/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/intern/cycles/CMakeLists.txt b/intern/cycles/CMakeLists.txt index 83f4fa47e6a..82a1c050982 100644 --- a/intern/cycles/CMakeLists.txt +++ b/intern/cycles/CMakeLists.txt @@ -150,7 +150,9 @@ if(WIN32 AND MSVC AND NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang") # such as in `svm.h`. # This flag is supported starting with MSVC 17.7 preview 3: # https://learn.microsoft.com/en-us/cpp/build/reference/jump-table-rdata - if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.37.32820) + # This is an x64 specific optimisation. + if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.37.32820 + AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64") string(APPEND CMAKE_CXX_FLAGS " /jumptablerdata") endif() elseif(CMAKE_COMPILER_IS_GNUCC OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))