You can probably do something like this
# ccode_wrapper.nim
const Ccode = staticRead"ccode.c"
{.localPassC:"-DMY_CUSTOM_FLAG".}
{.emit: Ccode.}
Runi.e. replace the direct C file compilation by staticRead + emit + localPassC.
