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 9221 0702f9d6e2b1
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
--- a/build-scripts/g++-fat.sh	Sun Nov 09 14:20:53 2014 -0500
+++ b/build-scripts/g++-fat.sh	Fri Nov 14 11:21:15 2014 -0500
@@ -34,7 +34,7 @@
             compile=no; link=no;;
         -c) link=no;;
         -o) output=$2;;
-        *.c|*.cc|*.cpp|*.S) source=$1;;
+        *.c|*.cc|*.cpp|*.S|*.m|*.mm) source=$1;;
     esac
     shift
 done
--- a/build-scripts/gcc-fat.sh	Sun Nov 09 14:20:53 2014 -0500
+++ b/build-scripts/gcc-fat.sh	Fri Nov 14 11:21:15 2014 -0500
@@ -35,7 +35,7 @@
             compile=no; link=no;;
         -c) link=no;;
         -o) output=$2;;
-        *.c|*.cc|*.cpp|*.S) source=$1;;
+        *.c|*.cc|*.cpp|*.S|*.m|*.mm) source=$1;;
     esac
     shift
 done