1
Fork 0

Update README

This commit is contained in:
Motiejus Jakštys 2024-11-05 06:15:27 +02:00
parent 043b8d05de
commit 659176e021
1 changed files with 18 additions and 1 deletions

View File

@ -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