more adhoc patching of CMakeLists.txt

This happens often, and it's structure is known well enough to be
processed with sed.
This commit is contained in:
2024-11-09 15:02:55 +02:00
parent f4f65abfd8
commit 02f8d6e831
2 changed files with 1 additions and 42 deletions

4
run
View File

@@ -13,6 +13,7 @@ fullbuild() {
# zig2
halfbuild() {
sed -i '/^add_custom_target(stage3/,/^)$/d' CMakeLists.txt
rm -fr build
mkdir build
pushd build
@@ -220,7 +221,6 @@ step07() {
git archive --prefix=zig-$STEP07_/ $STEP07 | tar -C .. -x
{
pushd "../zig-$STEP07_"
patch -p1 <"$HERE/0.10.0-961-g54160e7f6a-CMakeLists.txt-remove-stage3.patch"
cp ../zig-$STEP06_/stage1/zig1.wasm stage1/zig1.wasm
halfbuild
popd
@@ -362,7 +362,6 @@ step14() {
git archive --prefix=zig-$STEP14_/ $STEP14 | tar -C .. -x
{
pushd "../zig-$STEP14_"
patch -p1 <"$HERE/0.10.0-1657-g321ccbdc52-CMakeLists.txt-remove-stage3.patch"
cp ../zig-$STEP13_/stage1/zig1.wasm stage1/zig1.wasm
halfbuild
popd
@@ -402,7 +401,6 @@ step16() {
{
pushd "../zig-$STEP16_"
cp ../zig-$STEP15_/stage1/zig1.wasm stage1/zig1.wasm
patch -p1 <"$HERE/0.10.0-1657-g321ccbdc52-CMakeLists.txt-remove-stage3.patch"
halfbuild
popd
}