4ms/metamodule

Fix linux clang and win-gcc build of simulator

Closed this issue · 2 comments

See https://github.com/4ms/metamodule/actions/runs/8072972397

Linux clang is failing with something similar to this (at least the error is the same):
https://stackoverflow.com/questions/26136097/linker-fail-member-in-archive-is-not-an-object

Win gcc is failing with an LTO error...
We probably don't need LTO at all for the simulator, since it's just for debugging?

@LnnrtS if you can take a look

I think this is the underlying problem: https://gitlab.kitware.com/cmake/cmake/-/issues/20818

Yes, we don't need lto in the simulator (also faster to link). I will come up with a clean way how to deal with this