-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current bootstrap cannot build master zig source #153
Comments
Maybe try to build #!/bin/sh
set -eu
ROOTDIR="$(pwd)"
ZIG_DIR=$(python -c "import os; import ziglang; print(os.path.dirname(ziglang.__file__))" 2>&1)
export ZIG_EXE="$ZIG_DIR/zig"
TARGET_OS_CMAKE=""
mkdir -p "$ROOTDIR/out/build-zig-host"
mkdir -p "$ROOTDIR/out/host"
cd "$ROOTDIR/out/build-zig-host"
cmake "$ROOTDIR/zig" \
-DCMAKE_INSTALL_PREFIX="$ROOTDIR/out/host" \
-DCMAKE_PREFIX_PATH="$ROOTDIR/out/host" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER="$(pwd)/../../zigcc" \
-DCMAKE_CXX_COMPILER="$(pwd)/../../zigc++" \
-DCMAKE_GENERATOR=Ninja
cmake --build . --target install
ZIG="$ROOTDIR/out/host/bin/zig" #!/bin/sh
$ZIG_EXE cc $@ #!/bin/sh
$ZIG_EXE c++ $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following the instructions here, I run:
It fails with a long list fills with:
where zig-bootstrap produce as:
The text was updated successfully, but these errors were encountered: