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

Steve Lhomme git at videolan.org
Fri Oct 25 10:08:35 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Oct 24 14:57:14 2019 +0200| [4d57652c407d4a75e0b36f4e1fbc438def3b5c2e] | committer: Steve Lhomme

package/win32: build.sh: enable debug/disable optimization in debug builds

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).

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4d57652c407d4a75e0b36f4e1fbc438def3b5c2e
---

 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 6bfba56f5c..dd8f8a82ba 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



More information about the vlc-commits mailing list