File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments