bolt/bootstrap/cxx
2024-02-09 23:52:55 +01:00
..
.vscode Make VSCode launch test sandbox Bolt code by default 2024-01-21 01:11:29 +01:00
deps Update link to Zen project 2024-01-20 20:09:14 +01:00
include/bolt Make compile on GCC and add support for infix let-declarations 2024-02-04 16:49:57 +00:00
src Add support for parsing prefix and suffix let-declarations 2024-02-09 23:52:55 +01:00
test Make TypeEnv sort variables on whether they are a var or a function 2024-01-21 03:42:25 +01:00
.gitignore Ignore .python-version 2024-02-03 21:05:51 +00:00
CMakeLists.txt Make compile on GCC and add support for infix let-declarations 2024-02-04 16:49:57 +00:00
README.md Add sample CMake invocation to README.md 2024-01-21 00:20:04 +01:00

LLVM-based Bolt Compiler

This directory contains a partial implementation of the Bolt programming language using C++ and LLVM. It currently is one of the main contenders of becoming the offical Bolt compiler.

Developing

You need a recent version of the Zen libries to be able to compile. If youu still get build errors, the Zen libraries might be out of date. Do not hesitate to file an issue!

This is how a potential invocation to CMake could look like:

cmake \
    -DCMAKE_CXX_COMPILER=clang++ \
    -DCMAKE_BUILD_TYPE=Debug \
    -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
    -G Ninja \
    -B build \
    -DBOLT_ENABLE_TESTS=1 \
    -DZEN_ENABLE_TESTS=0 \
    -DLLVM_TARGETS_TO_BUILD=host \
    -DLLVM_OPTIMIZED_TABLEGEN=ON