Before building, ensure cmake is installed under Applications/Cmake.app and Ninja is installed in your PATH.
1. Navigate to `build/scripts`
2. Clone, build and package LLVM with
```../premake5-osx --file=LLVM.lua clone_llvm
../premake5-osx --file=LLVM.lua build_llvm
../premake5-osx --file=LLVM.lua package_llvm
```
If the clone_llvm step fails, you can try to manually clone LLVM and Clang as explained above. You should still run clone_llvm to ensure that you are on the correct revision.
The compile flags for cmake can be edited in `build/scripts/LLVM.lua`, e.g. if you need to build a 64-bit version.
## Compiling on Linux
If you do not have native build tools you can install them first with:
@ -68,4 +86,4 @@ cd deps/llvm/build
@@ -68,4 +86,4 @@ cd deps/llvm/build