Commit de879a7c authored by Felix Paul Kühne's avatar Felix Paul Kühne

iOS script: enforce bitcode for tvOS

parent c052d250
...@@ -171,18 +171,23 @@ export PLATFORM=$PLATFORM ...@@ -171,18 +171,23 @@ export PLATFORM=$PLATFORM
export SDK_VERSION=$SDK_VERSION export SDK_VERSION=$SDK_VERSION
export VLCSDKROOT=$SDKROOT export VLCSDKROOT=$SDKROOT
export CFLAGS="-isysroot ${SDKROOT} -arch ${ACTUAL_ARCH} ${OPTIM}" CFLAGS="-isysroot ${SDKROOT} -arch ${ACTUAL_ARCH} ${OPTIM}"
if [ "$PLATFORM" = "OS" ]; then if [ "$PLATFORM" = "OS" ]; then
if [ "$ARCH" != "aarch64" ]; then if [ "$ARCH" != "aarch64" ]; then
export CFLAGS="${CFLAGS} -mcpu=cortex-a8 -${OSVERSIONMINCFLAG}=${SDK_MIN}" CFLAGS+=" -mcpu=cortex-a8 -${OSVERSIONMINCFLAG}=${SDK_MIN}"
else else
export CFLAGS="${CFLAGS} -${OSVERSIONMINCFLAG}=${SIXTYFOURBIT_SDK_MIN}" CFLAGS+=" -${OSVERSIONMINCFLAG}=${SIXTYFOURBIT_SDK_MIN}"
fi fi
else else
export CFLAGS="${CFLAGS} -${OSVERSIONMINCFLAG}=${SIXTYFOURBIT_SDK_MIN}" CFLAGS+=" -${OSVERSIONMINCFLAG}=${SIXTYFOURBIT_SDK_MIN}"
fi fi
if [ "$TVOS" = "yes" ]; then
CFLAGS+=" -fembed-bitcode"
fi
export CFLAGS="${CFLAGS}"
export CXXFLAGS="${CFLAGS}" export CXXFLAGS="${CFLAGS}"
export CPPFLAGS="${CFLAGS}" export CPPFLAGS="${CFLAGS}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment