Last active
October 25, 2020 11:12
-
-
Save hdorio/82a63be5460e0d411d16f82a92cd81aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install libgit2 | |
# sudo apt install libgit2-dev # this is v0.28 but we need v1.0 | |
# Build libgit2 | |
sudo apt install libssl-dev | |
git clone https://github.com/libgit2/libgit2.git | |
cd libgit2 | |
mkdir build && cd build | |
cmake .. | |
cmake --build . --target install | |
# Build zkg | |
# zig executable must be installed e.g. in /usr/bin/zig | |
zig build | |
sudo ln -s $(pwd)/zig-cache/bin/zkg /usr/bin/zkg | |
sudo cp -r zig-cache/lib/zig/ /usr/lib/ | |
# Build std documentation | |
# www.ziglang.org/update_std_docs | |
zig test lib/std/std.zig -femit-docs -fno-emit-bin --override-lib-dir ./lib --output-dir ./docs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment