Use the nimscript config: just create a file `<name of source file>.nims` or `config.nims` in your project directory and put flags inside: switch("threads", "off") switch("mm", "arc") Run
this also works: --threads:off --mm:arc Run Nim should pick up all adjacent configs automatically when you compile your program. Nimscript docs: * <https://nim-lang.github.io/Nim/nims.html> * <https://nim-lang.github.io/Nim/nimscript.html>