Skip to content

Commit

Permalink
Fixed gcc-fat.sh failing to build Objective-C sources correctly.
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
icculus committed Nov 14, 2014
1 parent 49c9b48 commit 8366bbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build-scripts/g++-fat.sh
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/gcc-fat.sh
Expand Up @@ -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
Expand Down

0 comments on commit 8366bbd

Please sign in to comment.