28 lines
760 B
Bash
28 lines
760 B
Bash
#!/usr/bin/env bash
|
|
set -xeuo pipefail
|
|
|
|
# commit e7d28344fa3ee81d6ad7ca5ce1f83d50d8502118
|
|
# Merge: 817cf6a82e 20d86d9c63
|
|
# Author: Andrew Kelley <andrew@ziglang.org>
|
|
# Date: 2022-12-07T01:52:39+02:00
|
|
#
|
|
# Merge pull request #13560 from ziglang/wasi-bootstrap
|
|
#
|
|
# Nuke the C++ implementation of Zig from orbit using WASI
|
|
|
|
|
|
# Merge pull request #13560 from ziglang/wasi-bootstrap
|
|
git checkout 0.10.0-610-ge7d28344fa
|
|
|
|
# parent of "remove `-fstage1` option"
|
|
git checkout 0.10.0-538-gbf316e5506 CMakeLists.txt build.zig lib/build_runner.zig lib/std/build.zig lib/std/build/TranslateCStep.zig src deps
|
|
|
|
mkdir build
|
|
cd build
|
|
CC=clang-15 CXX=clang++-15 cmake ..
|
|
make -j$(nproc) install
|
|
|
|
echo "stage1 complete. Building zig1.wasm.zst"
|
|
|
|
git reset --hard
|