Nim 1.4 Compile - Modify default compile flags on MacOS - issue with clang ld: library not found for -lrt

Viewed 118

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

1 Answers
Related