From 659176e0210136e28698d423a2759fa495f47e4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 5 Nov 2024 06:15:27 +0200 Subject: [PATCH] Update README --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6dfa0c1..9efd92f 100644 --- a/README.md +++ b/README.md @@ -1 +1,18 @@ -docker run -ti --rm -v ~/code:/x -v /home/motiejus/.cache/zig:/home/motiejus/.cache/zig -w /x zig-repro sh -c 'useradd -ms /bin/bash motiejus && cd zig && su motiejus; bash' +Building modern Zig from the original C++ implementation +-------------------------------------------------------- + +This repository explores building Zig from the C++ implementation without using +binary blobs. [Forum post goes with this][1]. + +``` +$ docker build -t zig-repro . +$ docker run -ti --rm \ + -v ~/code:/x \ + -v /home/$USER/.cache/zig:/home/$USER/.cache/zig \ + -w /x \ + zig-repro + sh -c "useradd -m -s /bin/bash $USER && cd zig && su $USER; bash" +$ ../zig-repro/run +``` + +[1]: https://ziggit.dev/t/building-self-hosted-from-the-original-c-implementation/6607/11