diff --git a/s/cmake-init b/s/cmake-init index 361825423..4994f279e 100755 --- a/s/cmake-init +++ b/s/cmake-init @@ -9,13 +9,10 @@ while [ ! -d $ROOT/.git ]; do done [ -z $BUILD ] && BUILD=Debug -MACHINE=`uname -m` + [ -z "$CC" ] && [ ! -z `which gcc` ] && CC="gcc" [ -z "$CC" ] && [ ! -z `which tcc` ] && CC="tcc" [ -z "$CC" ] && [ ! -z `which cc` ] && CC="cc" -BIN_DIR="build-$MACHINE-$CC-$BUILD" -mkdir -p $BIN_DIR -cd $BIN_DIR if [ ! -e ../CMakeLists.txt ]; then echo "are you sure you are in the build directory?"