File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ cd /tmp/work/student
66# Compile the code if not already compiled.
77if [ ! -f program ]
88then
9- gnatmake program.adb -o program 2> /tmp/work/output/out.err
9+ gnatmake /tmp/work/student/ program.adb -D /tmp/work -o /tmp/work/student/ program 2> /tmp/work/output/out.err
1010 if [ -s /tmp/work/output/out.err ]
1111 then
1212 cat /tmp/work/output/out.err
1717fi
1818
1919# Execute the code.
20- . /program
20+ /tmp/work /program
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ cd /tmp/work/student
66# Compile the code if not already compiled.
77if [ ! -f program ]
88then
9- rustc -C linker=gcc -o program program.rs 2> /tmp/work/output/out.err
9+ rustc -C linker=gcc -o /tmp/work/student/ program /tmp/work/student/ program.rs 2> /tmp/work/output/out.err
1010 if [ -s /tmp/work/output/out.err ]
1111 then
1212 cat /tmp/work/output/out.err
1717fi
1818
1919# Execute the code.
20- . /program
20+ /tmp/work /program
You can’t perform that action at this time.
0 commit comments