Permalink
Browse files

Added include path as local project dir

  • Loading branch information...
1 parent bdfa7f5 commit 2342b00447daad7f8c7e542ab2263fa591c5fa0b @bmcdorman bmcdorman committed Aug 1, 2011
Showing with 4 additions and 3 deletions.
  1. +1 −1 filesystem/ext2/files/usercode/compilers/c
  2. +3 −2 filesystem/ext2/files/usercode/compilers/cpp
@@ -9,7 +9,7 @@ mkdir -p $DIR
echo "Compiling ${1}"
FOLDER="${1%/*}"
-/mnt/kiss/usercode/gcc-usercode -I${FOLDER} "${1}" -o $PROG 2>&1
+/mnt/kiss/usercode/gcc-usercode "-I${FOLDER}" "${1}" -o $PROG 2>&1
if [ -e $PROG ]; then
echo "Compile succeeded."
echo "${1}" > $NAME
@@ -7,8 +7,9 @@ NAME=$DIR/robot_name.txt
rm -rf $DIR
mkdir -p $DIR
-echo "Compiling ${1}"
-/mnt/kiss/usercode/g++-usercode -I${FOLDER} "${1}" -o $PROG 2>&1
+echo "Compiling ${1}"
+FOLDER="${1%/*}"
+/mnt/kiss/usercode/g++-usercode "-I${FOLDER}" "${1}" -o $PROG 2>&1
if [ -e $PROG ]; then
echo "Compile succeeded."
echo "${1}" > $NAME

0 comments on commit 2342b00

Please sign in to comment.