Skip to content

Commit 6ef2402

Browse files
authored
Merge pull request #211 from sysprog21/no-binfmt
Allow bootstrap without binfmt_misc QEMU support
2 parents e3154e3 + 3a2a55c commit 6ef2402

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/driver.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ case "$1" in
1111
"0")
1212
readonly SHECC="$PWD/out/shecc" ;;
1313
"1")
14-
readonly SHECC="$PWD/out/shecc-stage1.elf" ;;
14+
readonly SHECC="$TARGET_EXEC $PWD/out/shecc-stage1.elf" ;;
1515
"2")
16-
readonly SHECC="$PWD/out/shecc-stage2.elf" ;;
16+
readonly SHECC="$TARGET_EXEC $PWD/out/shecc-stage2.elf" ;;
1717
*)
1818
echo "$1 is not a valid stage"
1919
exit 1 ;;
@@ -40,7 +40,7 @@ function try() {
4040
local tmp_in="$(mktemp --suffix .c)"
4141
local tmp_exe="$(mktemp)"
4242
echo "$input" > "$tmp_in"
43-
"$SHECC" -o "$tmp_exe" "$tmp_in"
43+
$SHECC -o "$tmp_exe" "$tmp_in"
4444
chmod +x $tmp_exe
4545

4646
local output=''
@@ -93,7 +93,7 @@ function try_compile_error() {
9393
local tmp_in="$(mktemp --suffix .c)"
9494
local tmp_exe="$(mktemp)"
9595
echo "$input" > "$tmp_in"
96-
"$SHECC" -o "$tmp_exe" "$tmp_in"
96+
$SHECC -o "$tmp_exe" "$tmp_in"
9797
local exit_code=$?
9898

9999
if [ 0 == $exit_code ]; then

0 commit comments

Comments
 (0)