From 19a165cac71bbcd2123b49413246062962f2e689 Mon Sep 17 00:00:00 2001 From: Dennis Date: Mon, 1 Jun 2020 16:26:01 +0200 Subject: [PATCH] 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 --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 308ebf9..b7e5689 100755 --- a/build.sh +++ b/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