From 08d3c247c87be1aa97470874de3f090fd7eb7e4d Mon Sep 17 00:00:00 2001 From: Anthony Roberts Date: Thu, 4 Jul 2024 17:14:42 +0200 Subject: [PATCH] Windows: Disable TBB_MALLOC_PROXY on ARM64 Currently, every time blender starts on one of these platforms, we get the following warning (doesn't affect how it runs, all tests pass anyway): ``` TBBmalloc: skip allocation functions replacement in ucrtbase.dll: unknown prologue for function free ``` This is due to TBB_MALLOC_PROXY not working on these platforms (happens with emulated x64 too). I suspect it is fixed in the newer oneTBB releases that have proper support for Windows on Arm, rather than the patch I made to enable 2020u3. This can be revisited once the TBB version is updated. Pull Request: https://projects.blender.org/blender/blender/pulls/124148 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 81b6ef5f954..6e96d15aaa0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -794,7 +794,7 @@ Enable multi-threading. TBB is also required for features such as Cycles, OpenVD ) # TBB malloc is only supported on for windows currently -if(WIN32) +if(WIN32 AND NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "ARM64") option(WITH_TBB_MALLOC_PROXY "Enable the TBB malloc replacement" ON) endif()