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!

--HG--
extra : rebase_source : 3620d161d8c52613e864e156379837db5b8b0be6
This commit is contained in:
Ryan C. Gordon 2014-11-14 11:21:15 -05:00
parent d4f197e51b
commit 241c43fac3
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ while test x$1 != x; do
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

View file

@ -35,7 +35,7 @@ while test x$1 != x; do
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