ark-lang / ark

A compiled systems programming language written in Go using the LLVM framework
https://ark-lang.github.io/
MIT License
676 stars 47 forks source link

Framework directive for mac? #641

Open felixangell opened 8 years ago

felixangell commented 8 years ago

To link OpenGL on a mac you have to do -framework OpenGL. So I'm not sure if we need to have a directive for that, or if there's a way of deciphering to use -l or -framework?

kiljacken commented 8 years ago

See, this is why we can't have nice things

kiljacken commented 8 years ago

In all seriousness we'd want to further pursue how we handle linking on projects in a cross-platform way. Especially once we start working on Windows support.

felixangell commented 8 years ago

@kiljacken Not a mac person here but apparently @vnev managed to do -lOpen GL and that works, so I think we're okay on this issue perhaps...

MovingtoMars commented 8 years ago

That might be because opengl is present both as a framework and traditional dynamic library. (just a guess)

felixangell commented 8 years ago

@MovingtoMars Yeah that sounds like that could be the reason. I'm not too familiar with Mac, so I'm not sure if this is an issue or not, but I'll keep this open for now.