You can probably do something like this
    
    
    # ccode_wrapper.nim
    
    const Ccode = staticRead"ccode.c"
    
    {.localPassC:"-DMY_CUSTOM_FLAG".}
    {.emit: Ccode.}
    
    
    Run

i.e. replace the direct C file compilation by staticRead + emit + localPassC.

Reply via email to