diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mcm-buildall.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/mcm-buildall.sh b/scripts/mcm-buildall.sh index e82ce2d5..20713bc8 100755 --- a/scripts/mcm-buildall.sh +++ b/scripts/mcm-buildall.sh @@ -47,14 +47,15 @@ make_toolchain() HOST="$TARGET" export NATIVE=y LP="$OUTPUT/${RENAME:-$TARGET}-cross/bin:$LP" + [ -z "$(which $TARGET-cc)" ] && return fi COMMON_CONFIG="CC=\"$HOST-gcc -static --static\" CXX=\"$HOST-g++ -static --static\"" export -n HOST OUTPUT="$OUTPUT/${RENAME:-$TARGET}-$TYPE" fi - if [ -e "$OUTPUT.sqf" ] || [ -e "$OUTPUT/bin/$TARGET-ld" ] || - [ -e "$OUTPUT/bin/ld" ] + if [ -e "$OUTPUT.sqf" ] || [ -e "$OUTPUT/bin/$TARGET-cc" ] || + [ -e "$OUTPUT/bin/cc" ] then return fi |