Use cc instead of gcc and stop assuming bash's path

clang and gcc both expose cc, so that should be used.

bash doesn't have to be installed at /bin/bash, even on certain Linux distributions
This commit is contained in:
Dennis 2020-06-01 16:26:01 +02:00
parent fe554ee4aa
commit 19a165cac7
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
cflags="-Wall -O3 -g -std=gnu11 -fno-strict-aliasing -Isrc"
lflags="-lSDL2 -lm"
@ -14,7 +14,7 @@ if [[ $* == *windows* ]]; then
else
platform="unix"
outfile="lite"
compiler="gcc"
compiler="cc"
cflags="$cflags -DLUA_USE_POSIX"
lflags="$lflags -o $outfile"
fi