Page 1 of 1

Compiling on OSX - that blasted LLVM flag

Posted: Mon Jan 23, 2017 19:57
by ConSiGno
Here's how to build QZDoom on OS X because I'm stubborn and won't use someone else's binaries.

Because llvm 3.9.1 is the latest now, this is my command line (after brew install llvm)

Code: Select all

cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_DIR:STRING=/usr/local/Cellar/llvm/3.9.1/lib/cmake/llvm/ ..
Notice that this is different than some previous versions, which had something like

Code: Select all

-DLLVM_DIR:STRING=/usr/local/Cellar/llvm/3.6.2/share/llvm/cmake
so watch out. This should also work for Linuxbrew, or a similar path structure, at least. Because Linuxbrew is set up to not interfere with distro programs, you'll have to be specific and point out where every piece of software is. Sorry, that's just how it is.

Re: Compiling on OSX - that blasted LLVM flag

Posted: Mon Jan 23, 2017 20:32
by Rachael
Thank you for this. Stickied.