[vlc-devel] [PATCH 2/2] package/win32: build.sh: add option to do more checks during VLC compilation

Steve Lhomme robux4 at ycbcr.xyz
Fri Mar 20 10:20:50 CET 2020


I have been compiling with these flags for weeks without issues. It helped find
some issue (48442d3536edae578f1a384e73346d1e2a4c0061) that were pushed
unnoticed without these checks.
---
 extras/package/win32/build.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/extras/package/win32/build.sh b/extras/package/win32/build.sh
index 08f69519b01..085e735dd00 100755
--- a/extras/package/win32/build.sh
+++ b/extras/package/win32/build.sh
@@ -28,11 +28,12 @@ OPTIONS:
    -s            Interactive shell (get correct environment variables for build)
    -b <url>      Enable breakpad support and send crash reports to this URL
    -d            Create PDB files during the build
+   -x            Add extra checks when compiling
 EOF
 }
 
 ARCH="x86_64"
-while getopts "hra:pcli:sb:d" OPTION
+while getopts "hra:pcli:sb:dx" OPTION
 do
      case $OPTION in
          h)
@@ -67,6 +68,9 @@ do
          d)
              WITH_PDB="yes"
          ;;
+         x)
+             EXTRA_CHECKS="yes"
+         ;;
      esac
 done
 shift $(($OPTIND - 1))
@@ -223,6 +227,9 @@ fi
 if [ ! -z "$WITH_PDB" ]; then
     CONFIGFLAGS="$CONFIGFLAGS --enable-pdb"
 fi
+if [ ! -z "$EXTRA_CHECKS" ]; then
+    CONFIGFLAGS="$CONFIGFLAGS --enable-extra-checks"
+fi
 
 ${SCRIPT_PATH}/configure.sh --host=$TRIPLET --with-contrib=../contrib/$TRIPLET $CONFIGFLAGS
 
-- 
2.17.1



More information about the vlc-devel mailing list