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
11
11
" 0" )
12
12
readonly SHECC=" $PWD /out/shecc" ;;
13
13
" 1" )
14
- readonly SHECC=" $PWD /out/shecc-stage1.elf" ;;
14
+ readonly SHECC=" $TARGET_EXEC $ PWD /out/shecc-stage1.elf" ;;
15
15
" 2" )
16
- readonly SHECC=" $PWD /out/shecc-stage2.elf" ;;
16
+ readonly SHECC=" $TARGET_EXEC $ PWD /out/shecc-stage2.elf" ;;
17
17
* )
18
18
echo " $1 is not a valid stage"
19
19
exit 1 ;;
@@ -40,7 +40,7 @@ function try() {
40
40
local tmp_in=" $( mktemp --suffix .c) "
41
41
local tmp_exe=" $( mktemp) "
42
42
echo " $input " > " $tmp_in "
43
- " $SHECC " -o " $tmp_exe " " $tmp_in "
43
+ $SHECC -o " $tmp_exe " " $tmp_in "
44
44
chmod +x $tmp_exe
45
45
46
46
local output=' '
@@ -93,7 +93,7 @@ function try_compile_error() {
93
93
local tmp_in=" $( mktemp --suffix .c) "
94
94
local tmp_exe=" $( mktemp) "
95
95
echo " $input " > " $tmp_in "
96
- " $SHECC " -o " $tmp_exe " " $tmp_in "
96
+ $SHECC -o " $tmp_exe " " $tmp_in "
97
97
local exit_code=$?
98
98
99
99
if [ 0 == $exit_code ]; then
You can’t perform that action at this time.
0 commit comments