Compare commits

..

1 commit

Author SHA1 Message Date
XOR
8587d61aa9 Fix assigning default compiler if CC is unset 2024-08-04 15:01:15 +02:00

View file

@ -1,6 +1,5 @@
#! /bin/bash #! /bin/bash
script_root=$(pwd) script_root=$(pwd)
CC:="clang"
echo "Creating folder for libraries" echo "Creating folder for libraries"
mkdir lib mkdir lib
@ -12,7 +11,7 @@ git clone https://h2939863.stratoserver.net/git/XOR/simple_hashtable.git
cd simple_hashtable cd simple_hashtable
echo "Building simple_hashtable library" echo "Building simple_hashtable library"
$CC -c shash.c -o $script_root/lib/shash.o ${CC:=clang} -c shash.c -o $script_root/lib/shash.o
echo "Delete source files" echo "Delete source files"
cd $script_root cd $script_root