Fix assigning default compiler if CC is unset
This commit is contained in:
parent
12f70b1a88
commit
8587d61aa9
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue