Beginner here.
I'm trying to compile a simple binary (nim c binary.nim) without using parent directories' config.nims or nim.cfg but it seems --skipCfg and friends don't do anything. What am I missing?
It builds using the switch configs in the parent dir's config.nims: if I run nim c -r --app:bin --out:binary --skipParentCfg:on in the util folder, it compiles a library using the parent dir's config.nims and tries to run the resulting *.so. My project structure looks like:
src
| pkgname
| | util
| | | binary.nim
| | config.nims
| | ...
| pkgname.nim
pkgname.nimble
When using the run flag (-r) the arguments after the module name are passed to the compiled program. You need to put all arguments meant for the compiler before binary.nim.
Instead of this:
c -r binary.nim --app:bin --out:binary --skipParentCfg:on
Try:
c -r --app:bin --out:binary --skipParentCfg:on binary.nim