For some reason on my Mac when I am using nim 1.4 with clang it always builds with the -lrt compile flag which breaks since that's not on Macs.
So every time I need to do nim c --listCmd [my nim file].nim, get the compile command and delete the -lrt before running again, which works fine.
There must be some setting that's making nim or nimble always include -lrt in the compile flags but I don't know how to go about troubleshooting this.
I'm stuck on 1.4 due to some {.requiresInit.} issues that break in 1.6.
MacOS 12.1 - ARM Nim 1.4