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

Steve Lhomme git at videolan.org
Thu Jun 18 14:54:18 CEST 2020


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Oct 24 14:57:14 2019 +0200| [78cc651b020929752c55b0786932e9c81f7796b3] | 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).

(cherry picked from commit 4d57652c407d4a75e0b36f4e1fbc438def3b5c2e)

Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=78cc651b020929752c55b0786932e9c81f7796b3
---

 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 c475bd360b..e09e1a0071 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