An expressive low level programming language.
Join our community on Discord.
In the future, we plan to have binary releases for all 3 platforms. Until then, you will have to install Kai from source.
Currently, the actively supported platforms are macOS, Windows and Ubuntu (18.04 LTS).
To build on macOS it's recommended that you have the latest Xcode and have installed the command-line tools.
You will also need LLVM 6.0, which can be installed via a package manager:
brew install llvm@6.0
and then add the following to your ~/.bash_profile
:
export PATH="/usr/local/opt/llvm/bin:$PATH"
To build on Ubuntu Linux you will need to have LLVM 6.0, Clang and libz installed. All of which can be installed using apt:
apt-get install llvm-6.0-dev clang libz-dev
make
make tests
make release
If you wish to use Xcode to work on Kai on macOS there is an included .xcodeproj
file configured to build in the same manner as the Makefile. If you add any files make sure you do not include them in the target directly in xcode, instead go to main.c
and #include
them there. We do this to keep the number of object files clang produces to a minimum. Less compiler work means quicker compile times 👍.
You may need to make changes tot he scheme in order to point the compiler to the files you wish to compile.
On Windows there is build.bat
. At the moment, the script does not support anything other than building a debug build.