Skip to content

Commit fa7df8e

Browse files
committed
Update Ada and Rust templates
1 parent 5bc166a commit fa7df8e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/input-output/ada/scripts/execute.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cd /tmp/work/student
66
# Compile the code if not already compiled.
77
if [ ! -f program ]
88
then
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
@@ -17,4 +17,4 @@ then
1717
fi
1818

1919
# Execute the code.
20-
./program
20+
/tmp/work/program

templates/input-output/rust/scripts/execute.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cd /tmp/work/student
66
# Compile the code if not already compiled.
77
if [ ! -f program ]
88
then
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
@@ -17,4 +17,4 @@ then
1717
fi
1818

1919
# Execute the code.
20-
./program
20+
/tmp/work/program

0 commit comments

Comments
 (0)