https://github.com/ringtailsoftware/zig-compiler-env
Ubuntu llvm-19 environment for building zig compiler from source
https://github.com/ringtailsoftware/zig-compiler-env
Last synced: 2 days ago
JSON representation
Ubuntu llvm-19 environment for building zig compiler from source
- Host: GitHub
- URL: https://github.com/ringtailsoftware/zig-compiler-env
- Owner: ringtailsoftware
- License: mit
- Created: 2023-03-17T00:53:14.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-11T11:22:15.000Z (about 1 year ago)
- Last Synced: 2025-10-14T09:45:18.495Z (4 months ago)
- Language: Dockerfile
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zig-compiler-env
Quick and dirty docker container in which to build zig's compiler from source
Clone the repos:
git clone https://github.com/ringtailsoftware/zig-compiler-env
cd zig-compiler-env
git clone https://github.com/ziglang/zig.git
Setup environment and drop into a bash shell in the container
make
Build the compiler
cd zig
mkdir build && cd build
cmake ../
time make install
Have a cup of tea
file /zig/zig/build/stage3/bin/zig
/zig/zig/build/stage3/bin/zig version
## Running `make` does the following
- builds an ubuntu based docker container with llvm-19
- mounts the current directory on the host into /zig inside the container
- drops into a bash shell in the container