Fixed gcc-fat.sh failing to build Objective-C sources correctly.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 14 Nov 2014 11:21:15 -0500
changeset 92210702f9d6e2b1
parent 9220 1cb6ac648db7
child 9222 f4ef6e5fb804
Fixed gcc-fat.sh failing to build Objective-C sources correctly.

This would fail if the compiler was given a .m file _and_ no "-o" option; it
would fail to automatically calculate the correct .o filename in this
situation.

Thanks to Ethan Lee for the help tracking this one down!
build-scripts/g++-fat.sh
build-scripts/gcc-fat.sh
     1.1 --- a/build-scripts/g++-fat.sh	Sun Nov 09 14:20:53 2014 -0500
     1.2 +++ b/build-scripts/g++-fat.sh	Fri Nov 14 11:21:15 2014 -0500
     1.3 @@ -34,7 +34,7 @@
     1.4              compile=no; link=no;;
     1.5          -c) link=no;;
     1.6          -o) output=$2;;
     1.7 -        *.c|*.cc|*.cpp|*.S) source=$1;;
     1.8 +        *.c|*.cc|*.cpp|*.S|*.m|*.mm) source=$1;;
     1.9      esac
    1.10      shift
    1.11  done
     2.1 --- a/build-scripts/gcc-fat.sh	Sun Nov 09 14:20:53 2014 -0500
     2.2 +++ b/build-scripts/gcc-fat.sh	Fri Nov 14 11:21:15 2014 -0500
     2.3 @@ -35,7 +35,7 @@
     2.4              compile=no; link=no;;
     2.5          -c) link=no;;
     2.6          -o) output=$2;;
     2.7 -        *.c|*.cc|*.cpp|*.S) source=$1;;
     2.8 +        *.c|*.cc|*.cpp|*.S|*.m|*.mm) source=$1;;
     2.9      esac
    2.10      shift
    2.11  done