From 9d20b103d28e2e0b81db039549589e0a81a31a7d Mon Sep 17 00:00:00 2001 From: Bertrand Bellenot Date: Tue, 27 Oct 2026 14:46:11 +0100 Subject: [PATCH] [win] Export missing symbols (x86) Force export of the missing std::filesystem symbols (x86), not exposed by MSVCP140.dll Fixes https://github.com/root-project/root/issues/23664 on x86 Windows --- core/metacling/src/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/metacling/src/CMakeLists.txt b/core/metacling/src/CMakeLists.txt index b91c02f2f7406..0c984408c385b 100644 --- a/core/metacling/src/CMakeLists.txt +++ b/core/metacling/src/CMakeLists.txt @@ -239,6 +239,16 @@ if(MSVC) ??1LifetimeHandler@internal@runtime@cling@@QAE@XZ ?_Facet_Register@std@@YAXPAV_Facet_base@1@@Z ) + if(MSVC_VERSION GREATER_EQUAL 1951) + set(cling_exports ${cling_exports} + __std_replace_copy_2@20=___std_replace_copy_2@20 + ) + endif() + set(cling_exports ${cling_exports} + __std_fs_close_handle@4=___std_fs_close_handle@4 + __std_fs_get_final_path_name_by_handle@16=___std_fs_get_final_path_name_by_handle@16 + __std_fs_open_handle@16=___std_fs_open_handle@16 + ) if(MSVC_VERSION GREATER_EQUAL 1938 AND MSVC_VERSION LESS 1940) set(cling_exports ${cling_exports} ??$__std_find_trivial@$$CBDD@@YAPBDPBD0D@Z