Hi, was just playing around with this and confirmed that I can cross compile
Nim from Linux to OS X using osxcross,
[https://github.com/tpoechtrager/osxcross.git](https://github.com/tpoechtrager/osxcross.git)
This writeup,
[http://enigma-dev.org/docs/Wiki/CrossCompileLinuxOSX](http://forum.nim-lang.org///enigma-dev.org/docs/Wiki/CrossCompileLinuxOSX),
explains how to get going with osxcross.
Once you have that setup, then you can put something like this in your Nim .cfg
on the Linux box.
amd64.macosx.clang.exe = "o64-clang"
amd64.macosx.clang.linkerexe = "o64-clang"
Then create a test.nim
echo "Hello from Nim"
Compile it with something like this
nim -d:release --os:macosx --cpu:amd64 c test.nim
Copy the newly built _test_ binary to an OS X box and you should be able to run
it and get "Hello from Nim" printed to your console.
chrisheller@Chriss-MBP:~$ uname
Darwin
chrisheller@Chriss-MBP:~$ ./ntest
Hello from Nim
chrisheller@Chriss-MBP:~$
Haven't gone beyond just the Hello World example yet, but wanted to share.