How to save module with external codegen as .so or .dll

This should not happen at least from my experience…