jitify icon indicating copy to clipboard operation
jitify copied to clipboard

Add simple fix for MSVC name mangling

Open Ruochun opened this issue 5 months ago • 0 comments

I don't know if I am the only person who encounters this, but when I use Jitify in my project (https://github.com/projectchrono/DEM-Engine), on Windows with MSVC, the jit-ed kernel name mangling was never right, until I added this basically one-line fix. I hope my fix can be incorporated, but if the problem was due to the fact that I incorrectly used Jitify on Windows, kindly let me know, too.

Platform compatibility improvement:

  • Modified the type_reflection struct in jitify.hpp to use typeid(...).name() directly on MSVC, while retaining the use of demangle_native_type for other platforms. This addresses differences in how type names are handled between compilers.

Ruochun avatar Nov 02 '25 17:11 Ruochun