After some playing around with --listCmd I found out, that the generated 
compiler call is something like

| ...cc.exe -c -IC:Nimlib -o ..nimnimcachehello.o ..nimnimcachehello.c

Apparently the "-o" option is not understood by the Pelles C compiler. I would 
prefer to have it configurable in the nim.cfg file in a line like

ucc.compile.command = somepath/cc /Fo:%modname.o -c %modname.c  
ucc.link.command = somepath/cc %modname.o %modname.exe  


with a placeholder like %modname to be replaced by whatever module to compile.

A solution like this would be easier, more generic and more powerful than 
existing combination of ucc.path config file entry with passl and passc options 
combined.

Reply via email to