X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/762a2c91535d98ff0fa95aed91abbb5155c2e946..04c52c861598a001bfe217ef6ebe5c4c0d4c6354:/projects/stargazer/build?ds=sidebyside diff --git a/projects/stargazer/build b/projects/stargazer/build index 129c0966..36f2f733 100755 --- a/projects/stargazer/build +++ b/projects/stargazer/build @@ -158,6 +158,25 @@ else SHELL="/usr/local/bin/bash" fi +echo -n "Checking gcc... " +gcc --version > /dev/null 2> /dev/null +if [ $? != 0 ] +then + echo "FAIL!" + echo "gcc not found" + exit; +fi +echo "found" +echo -n "Checking g++... " +g++ --version > /dev/null 2> /dev/null +if [ $? != 0 ] +then + echo "FAIL!" + echo "g++ not found" + exit; +fi +echo "found" + echo -n "Checking endianess... " echo "int main() { int probe = 0x00000001; return *(char *)&probe; }" > build_check.c gcc $CXXFLAGS $LDFLAGS build_check.c -o fake > /dev/null 2> /dev/null