C compilers don't expand shell variables so the short answer to my questions seems to be no and no, use --passC
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.
