Parcourir la source

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!
Ryan C. Gordon il y a 11 ans
Parent
commit
8366bbdd7b
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      build-scripts/g++-fat.sh
  2. 1 1
      build-scripts/gcc-fat.sh

+ 1 - 1
build-scripts/g++-fat.sh

@@ -34,7 +34,7 @@ while test x$1 != x; do
             compile=no; link=no;;
             compile=no; link=no;;
         -c) link=no;;
         -c) link=no;;
         -o) output=$2;;
         -o) output=$2;;
-        *.c|*.cc|*.cpp|*.S) source=$1;;
+        *.c|*.cc|*.cpp|*.S|*.m|*.mm) source=$1;;
     esac
     esac
     shift
     shift
 done
 done

+ 1 - 1
build-scripts/gcc-fat.sh

@@ -35,7 +35,7 @@ while test x$1 != x; do
             compile=no; link=no;;
             compile=no; link=no;;
         -c) link=no;;
         -c) link=no;;
         -o) output=$2;;
         -o) output=$2;;
-        *.c|*.cc|*.cpp|*.S) source=$1;;
+        *.c|*.cc|*.cpp|*.S|*.m|*.mm) source=$1;;
     esac
     esac
     shift
     shift
 done
 done