[solved] Cpp-extension using wrong files for compilation


is it expected that for cpp-extensions with the JIT compilation the compiler will “merge” files if different modules if they have the same filename.
For example with this structure


every functions used in module2 will be overwritten by functions from module1!

Edit: Actually file name does not even matter, it will also work for files with different names :confused:


Found the issue: when using load(name="my_module_name") you cannot import two modules with the same name!