title |
---|
OSX Setup |
If you do not already have the OSX command line tools installed, then you may do so by running the following command in the terminal.
sudo xcode-select --install
To get started with b9 using the Ninja build system, you'll need the following:
git
node
npm
cmake
ninja
To install the above packages, you may use homebrew and run the following command in the terminal:
brew install git node npm cmake ninja
git clone --recursive https://github.com/b9org/b9.git
cd b9 \
&& npm install esprima
mkdir build \
&& cd build \
&& cmake -GNinja -DCMAKE_BUILD_TYPE=Debug .. \
&& ninja
Ensure you're still in the build
directory and run:
./b9run/b9run ./test/hello.b9mod
You can run the full b9 test suite with:
ninja test