However there are several problems, perhaps with pio build scripts:
Clean does not clean module cache, files like that remains:
Probably build order isn’t correct because i am getting errors sometimes - am i correct pio build scripts would need update?:
UARTWrapper: error: failed to read compiled module: No such file or directory
UARTWrapper: note: compiled module file is 'gcm.cache/UARTWrapper.gcm'
UARTWrapper: note: imports must be built before being imported
UARTWrapper: fatal error: returning to the gate for a mechanical issue
-fmodules-ts needs to be applied only for C++ files, is there a way to do so with pio ini? Adding this to build flags works but produces tons of warnings
And current issues i am struggling with and unable to pinpoint:
src/AppSerial.cpp:17:8: internal compiler error: in write_location, at cp/module.cc:15635
17 | export module AppSerial;
| ^~~~~~
libbacktrace could not find executable to open
Would be nice to work out even partial support for modules, i have been waiting for this for a very long time
I believe updating toolchain is not ready yet as besides the issues with modules, normal compilation gives pretty high amount of warnings. While my project did compile i did not test even a third of functions.