microzig icon indicating copy to clipboard operation
microzig copied to clipboard

regz: depends on microzig when generating standalone

Open Leandros opened this issue 3 months ago • 1 comments

The generated VectorTable struct depends on microzig.interrupt.Handler and microzig.interrupt.unhandled.

pub const VectorTable = extern struct {
    const Handler = microzig.interrupt.Handler;
    const unhandled = microzig.interrupt.unhandled;
    // ...
};

Leandros avatar Nov 26 '25 09:11 Leandros

You can add an import to the generated file called microzig that provides those definitions. Though, I agree that the standalone option should generate code that does not depend on any imports.

tact1m4n3 avatar Nov 28 '25 19:11 tact1m4n3