Open markfirmware opened 4 years ago
TLDR: Use -ffunction-sections
The compiler generates that function in case you may want to invoke it from a debugger, there's already an open ticket about being able to mark some functions as comptime-only.
Thanks. Let me think about that.
Ok, -ffunction-sections works.
@LemonBoy @andrewrk
How do I add -ffunction-sections in build.zig?
https://github.com/ziglang/zig/pull/4746/commits/27be16543e0370f795be0a596f2668a205583e51
@LemonBoy @andrewrk
How do I add -ffunction-sections in build.zig?
Thanks!
Would something like a callconv(.Comptime)
work to tag functions intended for comptime only?
No linker script shows the problem as well as a typical linker script.