Skip to content

Commit

Permalink
Use cc instead of gcc and stop assuming bash's path
Browse files Browse the repository at this point in the history
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
  • Loading branch information
DennisCGc committed Jun 9, 2020
1 parent 310f9e1 commit 0dbee33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

cflags="-Wall -O3 -g -std=gnu11 -Isrc"
lflags="-lSDL2 -lm"
Expand All @@ -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
Expand Down

0 comments on commit 0dbee33

Please sign in to comment.