History

meson, bootstrap: make bootstrap independent of build dir naming

Sigrid Solveig Haflínudóttir committed 3 months ago

Commit 1fcf5dc1 parent 87aa3092 files · +6 −8Browse files

Unified · Split

2 files
  1. meson.build +2 −2
  2. tools/bootstrap.sh +4 −6
meson.build+2−2
@@ -729,7 +729,7 @@ test('docvet.sl', sl, args: ta+['docvet.sl'], workdir: src_dir/'tools', is_paral · 728 unmodified lines
729729 bootstrap = src_dir/'tools'/'bootstrap.sh'
730730 run_target(
731731 'bootstrap',
732− command: bootstrap,
732+ command: [bootstrap, sl]+ta,
733733 )
734734
735735 if not meson.is_cross_build()
@@ -738,7 +738,7 @@ if not meson.is_cross_build() · 2 unmodified lines
738738 native: true,
739739 required: true,
740740 )
741− test('bootstrap', bootstrap, args: ta, workdir: src_dir, is_parallel: false, priority: 9999, timeout: -1)
741+ test('bootstrap', bootstrap, workdir: src_dir, is_parallel: false, priority: 9999, timeout: -1)
742742 endif
743743
744744 summary(
tools/bootstrap.sh+4−6
@@ -1,18 +1,16 @@
11 #!/bin/sh
22 set -x
3−test -e
43 P="${MESON_SOURCE_ROOT:-$(pwd)}"
54 T="$P/tools"
65 B="${MESON_BUILD_ROOT:-$P/build}"
7−F="$B/sl"
8−test -x "$F" || { echo no "$F" found; exit 1; }
6+test -x "$1" || { echo no "$1" found; exit 1; }
97 cd "$P/src" && \
10−"$F" $* "$T/gen.sl" && \
8+$* "$T/gen.sl" && \
119 cp "$P/boot/sl.boot" "$P/boot/sl.boot.bak" && \
12−"$F" $* "$T/mkboot0.sl" builtins.sl instructions.sl system.sl compiler.sl > "$P/boot/sl.boot" && \
10+$* "$T/mkboot0.sl" builtins.sl instructions.sl system.sl compiler.sl > "$P/boot/sl.boot" && \
1311 ninja -C "$B" && \
1412 cd "$P/boot" && \
15−"$F" $* "$T/mkboot1.sl" && \
13+$* "$T/mkboot1.sl" && \
1614 sed -E 's/^ +//g' <sl.boot >sl.boot.cut && \
1715 mv sl.boot.cut sl.boot && \
1816 ninja -C "$B" || { cp "$P/boot/sl.boot.bak" "$P/boot/sl.boot"; exit 1; }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t