- Install Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install and set up opam:
brew install opam
opam init
- Install llvm:
brew install homebrew/versions/llvm38
- Have opam set up your enviroment:
eval `opam config env`
- Install OCaml libraries:
opam install core
opam install llvm.3.8
opam install yojson
- Create a symbolic link to the lli command:
sudo ln -s /usr/local/opt/llvm38/bin/lli-3.8 /usr/bin/lli
To make sure everything is working, navigate to the root directory of QL and run the following command:
make test
The outputs should be generated.
cd test; make
./pass_test.sh
cd test
./scanner_test.sh
cd test
./fail_test.sh