diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-04-23 06:14:39 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-04-24 15:45:35 -0700 |
commit | 2cba24fa1aa9663bffc666a918a11b29f85ef2aa (patch) | |
tree | 3d5957c4f43059999380c7d9335555a8e6c3ecb0 | |
parent | fdcc749c99048d2bbb6aabd619afb2bf80e2f7e4 (diff) | |
download | subsurface-2cba24fa1aa9663bffc666a918a11b29f85ef2aa.tar.gz |
iOS: don't show all the libgit2 warnings
We aren't concerned about the code quality of libgit2 and with these warnings
the build log overflows.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | packaging/ios/build.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh index 362450d9b..70c4ff3ca 100644 --- a/packaging/ios/build.sh +++ b/packaging/ios/build.sh @@ -203,6 +203,10 @@ echo next building for $ARCH fi if [ ! -e libgit2-${LIBGIT2_VERSION} ] ; then tar -zxf libgit2-${LIBGIT2_VERSION}.tar.gz + # libgit2 with -Wall on iOS creates megabytes of warnings... + pushd libgit2-${LIBGIT2_VERSION} + sed -i.bak 's/ADD_C_FLAG_IF_SUPPORTED(-W/# ADD_C_FLAG_IF_SUPPORTED(-W/' CMakeLists.txt + popd fi if [ ! -e $PKG_CONFIG_LIBDIR/libgit2.pc ] ; then mkdir -p libgit2-build-$ARCH @@ -218,6 +222,7 @@ echo next building for $ARCH -DCURL=OFF \ -DUSE_SSH=OFF \ ../libgit2-${LIBGIT2_VERSION}/ + sed -i.bak 's/C_FLAGS = /C_FLAGS = -Wno-nullability-completeness -Wno-expansion-to-defined /' CMakeFiles/git2.dir/flags.make make make install # Patch away pkg-config dependency to zlib, its there, i promise |