From 2cba24fa1aa9663bffc666a918a11b29f85ef2aa Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 23 Apr 2018 06:14:39 -0700 Subject: 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 --- packaging/ios/build.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3-70-g09d2