From my one day experience with jbuilder I would say that I don’t see why not, but the documentation doesn’t seem specify C stub stanzas for
executable. Why not put your modules containing in the C stubs in a separate directory and build them as a library?
This might a design decision to promote a certain project structure. They do seem to want a library per directory if you see at “Project Layout” section.