**petevine:** _It would be good for usability if the nim compiler offered automated profiled builds as well as pass the expanded CFLAGS via --passC automatically in release mode._
You can do this via a `<project>.nims` config file, e.g.:
import strutils, sequtils
let cflags = getenv("NIMCFLAGS").split(" ").filter(
proc(x: string): bool = len(x) != 0)
for cflag in cflags:
switch("passC", cflag)
