forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 15
Home
Jacob Young edited this page Aug 29, 2023
·
12 revisions
- Windows Release
- MacOS Release
- Linux Release
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
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.