Skip to content

Commit a2f9d67

Browse files
committed
[CMake] Run TPython C++ test also on Windows
1 parent 5b8dcd1 commit a2f9d67

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bindings/tpython/test/CMakeLists.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ else()
1717
PYTHONPATH=${ROOTSYS}/lib:$ENV{PYTHONPATH})
1818
endif()
1919

20+
ROOT_ADD_GTEST(testTPython testTPython.cxx LIBRARIES ROOTTPython ENVIRONMENT ${tpython_gtest_env})
21+
2022
if(NOT MSVC)
21-
# These tests fail on Windows because of a problem with std::any
22-
# input_line_33:7:52: error: address of overloaded function 'make_any' does not match required type 'std::any (int &&)'
23-
# new (ret) (std::any) (((std::any (&)(int &&))std::make_any<int, int, 0>)((int&&)*(int*)args[0]));
24-
ROOT_ADD_GTEST(testTPython testTPython.cxx LIBRARIES ROOTTPython ENVIRONMENT ${tpython_gtest_env})
23+
# This test fails on Windows because MSVC’s standard library does not export
24+
# the symbols needed for cling to JIT-compile code involving std::any,
25+
# causing symbol resolution to fail.
2526
ROOT_ADD_PYUNITTEST(test_tpython test_tpython.py)
2627
endif()

0 commit comments

Comments
 (0)