[vlc-devel] [PATCH] package/win32: build.sh: enable debug/disable optimization in debug builds

Steve Lhomme robux4 at ycbcr.xyz
Thu Oct 24 14:57:20 CEST 2019


the --disable-optim flag is used for both. Debug builds should have debug so
should enable this option (until/if we split the option to enable/disable debug
and enable/disable optimization).
---
 extras/package/win32/build.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/extras/package/win32/build.sh b/extras/package/win32/build.sh
index 6bfba56f5cb..dd8f8a82bad 100755
--- a/extras/package/win32/build.sh
+++ b/extras/package/win32/build.sh
@@ -139,6 +139,9 @@ fi
 if [ ! -z "$BREAKPAD" ]; then
      CONTRIBFLAGS="$CONTRIBFLAGS --enable-breakpad"
 fi
+if [ "$RELEASE" != "yes" ]; then
+     CONTRIBFLAGS="$CONTRIBFLAGS --disable-optim"
+fi
 ../bootstrap --host=$TRIPLET $CONTRIBFLAGS
 
 # Rebuild the contribs or use the prebuilt ones
-- 
2.17.1



More information about the vlc-devel mailing list