Skip to content

Commit

Permalink
Make ./configure also set the path of the CC it will use to build
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Crampsie authored and Drew Crampsie committed Apr 17, 2024
1 parent aab5309 commit 0b530a2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@ find_gerbil_gcc () {
then
echo "\n;; Added auto via ./configure\n(set! default-gerbil-gcc \"$cc\")" >> \
./src/gerbil/compiler/cc.ss
elif which gcc;
then
echo "\n;; Added auto via ./configure\n(set! default-gerbil-gcc \"$(which gcc)\")" >> \
./src/gerbil/compiler/cc.ss

elif which cc ;
then
echo "\n;; Added auto via ./configure\n(set! default-gerbil-gcc \"$(which cc)\")" >> \
./src/gerbil/compiler/cc.ss
else

echo "ERROR: Cannot find a C compiler.\nSet CC or GERBIL_GCC" && exit 42
fi
}

Expand Down

0 comments on commit 0b530a2

Please sign in to comment.