Building from Source

Unless you really need to build Seq for whatever reason, we strongly recommend using pre-built binaries if possible.


Seq depends on LLVM 12, which can be installed via most package managers. To build LLVM 12 yourself, you can do the following:

git clone --depth 1 -b release/12.x
mkdir -p llvm-project/llvm/build
cd llvm-project/llvm/build
cmake .. \
    -DCMAKE_BUILD_TYPE=Release \
make install


The following can generally be used to build Seq. The build process will automatically download and build several smaller dependencies.

mkdir build
(cd build && cmake .. -DCMAKE_BUILD_TYPE=Release \
                      -DLLVM_DIR=$(llvm-config --cmakedir) \
                      -DCMAKE_C_COMPILER=clang \
cmake --build build --config Release

This should produce the seqc executable in the build directory, as well as seqtest which runs the test suite.