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:
parent
fe554ee4aa
commit
19a165cac7
4
build.sh
4
build.sh
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue