Skip to content

Commit e94e9b3

Browse files
committed
Update runtime
1 parent b3c3744 commit e94e9b3

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

runtime/platform-flags.sh

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
#
66
# Override to force -m32 if autodetection fails
77
ABI_FLAG=
8+
9+
# Adds to the ABI flags -no-pie if gcc is >= 5.0.0
10+
currentver="$(gcc -dumpversion)"
11+
requiredver="5.0.0"
12+
if [ "$(printf '%s\n' "$requiredver" "$currentver" | sort -V | head -n1)" = "$requiredver" ]; then
13+
ABI_FLAG="$ABI_FLAG -fno-pie -no-pie"
14+
fi
15+
816
CPU=$(uname -m)
917
OS=$(uname)
1018
# echo "OS = $OS"

runtime/update

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/sh
22

33
WEBSEMESTER=2019sp
4-
XIRT=pa5-release.zip
4+
XIRT=runtime.zip
55

66
cd $(dirname $0)/..
7-
wget -nv -N http://www.cs.cornell.edu/courses/cs4120/$WEBSEMESTER/pa/pa5/$XIRT
8-
unzip -q $XIRT "pa5_student/runtime/*" -d runtime
7+
wget -nv -N http://www.cs.cornell.edu/courses/cs4120/$WEBSEMESTER/project/$XIRT
8+
unzip -q $XIRT -d runtime
99
rm $XIRT
1010
cd runtime
11-
cp -frp pa5_student/runtime/* .
12-
rm -rf pa5_student
11+
cp -frp release/* .
12+
rm -rf release
1313
make

0 commit comments

Comments
 (0)