LocalPassc pragma

The localPassc pragma can be used to pass additional parameters to the C compiler, but only for the C/C++ file that is produced from the Nim module the pragma resides in:

  1. # Module A.nim
  2. # Produces: A.nim.cpp
  3. {.localPassc: "-Wall -Werror".} # Passed when compiling A.nim.cpp