2024-11-05 06:15:27 +02:00
|
|
|
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 \
|
2024-11-05 06:18:08 +02:00
|
|
|
zig-repro \
|
2024-11-05 06:18:52 +02:00
|
|
|
sh -c "useradd -s /bin/bash $USER && cd zig && su $USER; bash"
|
2024-11-05 06:15:27 +02:00
|
|
|
$ ../zig-repro/run
|
|
|
|
```
|
|
|
|
|
|
|
|
[1]: https://ziggit.dev/t/building-self-hosted-from-the-original-c-implementation/6607/11
|