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
6
6
# Compile the code if not already compiled.
7
7
if [ ! -f program ]
8
8
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
10
10
if [ -s /tmp/work/output/out.err ]
11
11
then
12
12
cat /tmp/work/output/out.err
17
17
fi
18
18
19
19
# 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
6
6
# Compile the code if not already compiled.
7
7
if [ ! -f program ]
8
8
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
10
10
if [ -s /tmp/work/output/out.err ]
11
11
then
12
12
cat /tmp/work/output/out.err
17
17
fi
18
18
19
19
# Execute the code.
20
- . /program
20
+ /tmp/work /program
You can’t perform that action at this time.
0 commit comments