瀏覽代碼

MVK: further iterate on debug flags

Felix Paul Kühne 7 年之前
父節點
當前提交
a191fb1b6a
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      buildMobileVLCKit.sh

+ 3 - 1
buildMobileVLCKit.sh

@@ -268,7 +268,7 @@ buildLibVLC() {
     if [ "$DEBUG" = "yes" ]; then
         OPTIM="-O0 -g"
     else
-        OPTIM="-O3"
+        OPTIM="-O3 -g"
     fi
 
     if [ "$TVOS" = "yes" ]; then
@@ -452,6 +452,8 @@ buildLibVLC() {
 
     if [ "$DEBUG" = "yes" ]; then
         DEBUGFLAG="--enable-debug"
+    else
+        export CFLAGS="${CFLAGS} -DNDEBUG"
     fi
 
     if [ "$SCARY" = "yes" ]; then