Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
Update runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolkabra committed May 15, 2019
1 parent b3c3744 commit e94e9b3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions runtime/platform-flags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
#
# Override to force -m32 if autodetection fails
ABI_FLAG=

# Adds to the ABI flags -no-pie if gcc is >= 5.0.0
currentver="$(gcc -dumpversion)"
requiredver="5.0.0"
if [ "$(printf '%s\n' "$requiredver" "$currentver" | sort -V | head -n1)" = "$requiredver" ]; then
ABI_FLAG="$ABI_FLAG -fno-pie -no-pie"
fi

CPU=$(uname -m)
OS=$(uname)
# echo "OS = $OS"
Expand Down
10 changes: 5 additions & 5 deletions runtime/update
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/sh

WEBSEMESTER=2019sp
XIRT=pa5-release.zip
XIRT=runtime.zip

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

0 comments on commit e94e9b3

Please sign in to comment.