This commit is contained in:
Your Name 2024-01-20 19:27:56 +03:00
parent 18c5379148
commit f9316771af
1 changed files with 2 additions and 4 deletions

View File

@ -24,16 +24,14 @@ fi
#C
out_name=$(mktemp XXXXXX)
echo "#include <stdio.h>" >> test.c
echo "int main(void){return 0;}" >> test.c
echo -e "#include <stdio.h>\nint main(void){return 0;}" > test.c
$CC test.c -o $out_name
chmod +x $out_name
rm test.c
rm test.c $out_name
if ! ./$out_name; then
echo "[FAILED] Fix c compiler or headers..."
rm $out_name
exit 1
fi