For me this looks like a solution for a problem that really isn't there.
Anyone that cares about compiling C code should be skilled enough to actually use the right tools in first place.
Anyone that cares about compiling C code should be skilled enough to actually use the right tools in first place.
Not sure what you mean by the right tools in this context.
Secondly, the right tools are having Python, the C and C++ compiler, node-gyp and cmake.js installed, and actually understand how they work.
But what do I know, nowadays folks use C and C++ as scripting languages putting a full library into a single header file to avoid learning how to use the compiler and linker.
The thing is, I'm not already using the Bun runtime and wouldn't switch just for this.