Hello, Building the Gollvm compiler (llvm-goc) on OS-X is (probably) doable with some hacking, but the bigger problem is that that the version of libgo (Go runtime and standard packages) has not yet been ported to the Mac-- at the moment only linux is supported. So even if you could compile things, you would have no way to run them. It would be nice to have an OS-X port for gollvm, but at the moment nobody has stepped up to contribute along those lines.
Thanks, Than On Thu, Jan 10, 2019 at 2:27 PM <[email protected]> wrote: > Hello, > > has anyone managed to setup the GOLVVM on OSX (Mojave)? > > I'm following the instructions here https://go.googlesource.com/gollvm, > but am stuck at: > > cmake -DCMAKE_BUILD_TYPE=Debug -DLLVM_USE_LINKER=gold -G Ninja ../llvm > > > The error I get is: > > Host compiler does not support '-fuse-ld=gold' > > > I assume the Gold linker isn't for OSX, but I can't seem to find one that > does, at least by setting the flags to cmake. > > If anyone has successfully built gollvm on an OSX machine, please share > how you did it, or what am I doing wrong. > > Thanks a lot > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
