passc pragma
The passc pragma can be used to pass additional parameters to the C compiler like one would use the command-line switch --passc:
{.passc: "-Wall -Werror".}
Note that one can use gorge from the system module to embed parameters from an external command that will be executed during semantic analysis:
{.passc: gorge("pkg-config --cflags sdl").}
当前内容版权归 nim-lang.org 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 nim-lang.org .