Forráskód Böngészése

build: Group OBJCFLAGS for simulator with the other flags

David Fuhrmann 7 éve
szülő
commit
f883371dcb
1 módosított fájl, 3 hozzáadás és 6 törlés
  1. 3 6
      compileAndBuildVLCKit.sh

+ 3 - 6
compileAndBuildVLCKit.sh

@@ -228,6 +228,9 @@ buildLibVLC() {
         fi
     else # Simulator platform
         LDFLAGS+=" -v"
+
+        # Use the new ABI on simulator, else we can't build
+        OBJCFLAGS+=" -fobjc-abi-version=2 -fobjc-legacy-dispatch"
     fi
 
     if [ "$BITCODE" = "yes" ]; then
@@ -240,12 +243,6 @@ buildLibVLC() {
     export OBJCFLAGS="${OBJCFLAGS}"
     export LDFLAGS="${LDFLAGS}"
 
-    if [ "$PLATFORM" = "Simulator" ]; then
-        # Use the new ABI on simulator, else we can't build
-        export OBJCFLAGS="-fobjc-abi-version=2 -fobjc-legacy-dispatch ${OBJCFLAGS}"
-    fi
-
-
     spushd ${VLCROOT}/contrib
 
     info "Compiling third-party libraries"