Skip to content
Jacob Young edited this page Aug 29, 2023 · 12 revisions

Welcome to the LLVM (e)Z80 wiki!

Download Latest Nightly Build

Build From Scratch

git clone -b z80 --depth 1 https://github.com/jacobly0/llvm-project.git
mkdir llvm-project/build
cd llvm-project/build
cmake ../llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS=clang -DLLVM_TARGETS_TO_BUILD= -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=Z80
cmake --build . --target clang
ln -s $PWD/bin/clang ~/bin/ez80-clang

Build For Contributers

git clone -b z80 https://github.com/jacobly0/llvm-project.git
mkdir llvm-project/build
cd llvm-project/build
cmake ../llvm -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DLLVM_ENABLE_PROJECTS=clang -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=Z80 -DBUILD_SHARED_LIBS=ON
cmake --build .
ln -s $PWD/bin/llc ~/bin/ez80-llc
ln -s $PWD/bin/opt ~/bin/ez80-opt
ln -s $PWD/bin/clang ~/bin/ez80-clang

For more info see the upstream LLVM Getting Started Guide and CMake Guide.

Clone this wiki locally