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
This commit is contained in:
Sean Stirling
2025-10-06 17:10:08 +02:00
committed by Anthony Roberts
parent 2f3b321f29
commit e12ddede24

View File

@@ -150,7 +150,9 @@ if(WIN32 AND MSVC AND NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# such as in `svm.h`. # such as in `svm.h`.
# This flag is supported starting with MSVC 17.7 preview 3: # This flag is supported starting with MSVC 17.7 preview 3:
# https://learn.microsoft.com/en-us/cpp/build/reference/jump-table-rdata # 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") string(APPEND CMAKE_CXX_FLAGS " /jumptablerdata")
endif() endif()
elseif(CMAKE_COMPILER_IS_GNUCC OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) elseif(CMAKE_COMPILER_IS_GNUCC OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))