Skip to content
START HERE

Installation

WeaveC currently ships source releases. Build it against an LLVM/Clang development installation, and keep that LLVM installation available at runtime. The CI-tested platforms are macOS and Linux.

You need CMake 3.25 or newer for the supplied presets, Ninja, a C++20 compiler, and the LLVM/Clang development libraries. LLVM 23.x is recommended; the project supports LLVM 20 and newer. Tests also require lit and LLVM’s FileCheck.

Terminal window
brew install cmake llvm ninja lit
export WEAVEC_LLVM_PREFIX="$(brew --prefix llvm)"

Apple’s system Clang can compile WeaveC, but the development libraries come from Homebrew’s LLVM package. Xcode does not include them.

Download the source archive and SHA256SUMS from GitHub Releases into the same directory. Verify the archive with one of:

Terminal window
shasum -a 256 -c SHA256SUMS # macOS
sha256sum -c SHA256SUMS # Linux

Extract weavec-X.Y.Z-source.tar.gz, replacing X.Y.Z with the downloaded version, and enter its weavec-X.Y.Z directory.

For development, you can instead clone the current source:

Terminal window
git clone https://github.com/weavefoundry/weavec.git
cd weavec

Run these commands from the source directory:

Terminal window
cmake --preset release -DWEAVEC_VERSION_SUFFIX=""
cmake --build --preset release
ctest --preset release
cmake --install build/release --prefix "$HOME/.local"
export PATH="$HOME/.local/bin:$PATH"

Add the PATH export to your shell configuration to retain it in new terminals. Use the developer guide for debug builds, alternative LLVM installations, and build options.

Terminal window
weavec --version
weavec-cc --version

Both commands should print their version. If Clang resources or shared libraries cannot be found, check installation troubleshooting.

Next: Run your first check.