diff options
author | luckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com> | 2022-01-07 18:18:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-07 18:18:10 -0500 |
commit | a4417ead3c87c6cb36efc9829200e650f2a413a9 (patch) | |
tree | ed600e702dd3932637cc92dedf6ef2e3bac97025 /build.sh | |
parent | 1cff637716dcc2e5fff74c7bedb7ae0da0eb5b47 (diff) | |
parent | c19734bb7acd33e27fb28fb1ebb84b5270aac8c5 (diff) |
Merge pull request #48 from luckytyphlosion/master
Add helpful error checks for common user errors.
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3,6 +3,12 @@ set -e CCOPT= CXXOPT= +# error if devkitarm is not installed and binutils-arm-none-eabi is not installed +if ! ([ -v DEVKITARM ] && [ -d "$DEVKITARM/bin" ]) && ! (command -v arm-none-eabi-as &> /dev/null && command -v arm-none-eabi-ar &> /dev/null) ; then + echo "Could not find a binutils installation! Re-read the instructions and make sure you've installed either devkitARM or binutils-arm-none-eabi, depending on your system." + exit 1 +fi + if [ ! -z "$CC" ]; then CCOPT=CC=$CC; fi if [ ! -z "$CXX" ]; then CXXOPT=CXX=$CXX; fi make -C gcc clean |