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:
committed by
Anthony Roberts
parent
2f3b321f29
commit
e12ddede24
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user