Fix assigning default compiler if CC is unset

This commit is contained in:
XOR 2024-08-04 15:01:15 +02:00
parent 12f70b1a88
commit 8587d61aa9

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