disable bitcode in macos scripts

This commit is contained in:
Taner Sener 2021-10-26 13:24:51 +01:00
parent a72e3f501d
commit a22a448867

View File

@ -70,7 +70,7 @@ get_common_cflags() {
case ${ARCH} in case ${ARCH} in
arm64) arm64)
echo "-fstrict-aliasing -fembed-bitcode -DMACOSX ${LTS_BUILD_FLAG}${BUILD_DATE} -isysroot ${SDK_PATH}" echo "-fstrict-aliasing -DMACOSX ${LTS_BUILD_FLAG}${BUILD_DATE} -isysroot ${SDK_PATH}"
;; ;;
*) *)
echo "-fstrict-aliasing -DMACOSX ${LTS_BUILD_FLAG}${BUILD_DATE} -isysroot ${SDK_PATH}" echo "-fstrict-aliasing -DMACOSX ${LTS_BUILD_FLAG}${BUILD_DATE} -isysroot ${SDK_PATH}"
@ -209,7 +209,7 @@ get_cxxflags() {
local OPTIMIZATION_FLAGS="${FFMPEG_KIT_DEBUG}" local OPTIMIZATION_FLAGS="${FFMPEG_KIT_DEBUG}"
fi fi
local BITCODE_FLAGS="-fembed-bitcode" local BITCODE_FLAGS=""
case $1 in case $1 in
x265) x265)
@ -262,7 +262,7 @@ get_size_optimization_ldflags() {
get_arch_specific_ldflags() { get_arch_specific_ldflags() {
case ${ARCH} in case ${ARCH} in
arm64) arm64)
echo "-arch arm64 -march=armv8-a+crc+crypto -fembed-bitcode -target $(get_target)" echo "-arch arm64 -march=armv8-a+crc+crypto -target $(get_target)"
;; ;;
x86-64) x86-64)
echo "-arch x86_64 -march=x86-64 -target $(get_target)" echo "-arch x86_64 -march=x86-64 -target $(get_target)"
@ -284,7 +284,7 @@ get_ldflags() {
ffmpeg-kit) ffmpeg-kit)
case ${ARCH} in case ${ARCH} in
arm64) arm64)
echo "${ARCH_FLAGS} ${LINKED_LIBRARIES} ${COMMON_FLAGS} -fembed-bitcode -Wc,-fembed-bitcode ${OPTIMIZATION_FLAGS}" echo "${ARCH_FLAGS} ${LINKED_LIBRARIES} ${COMMON_FLAGS} ${OPTIMIZATION_FLAGS}"
;; ;;
x86-64) x86-64)
echo "${ARCH_FLAGS} ${LINKED_LIBRARIES} ${COMMON_FLAGS} ${OPTIMIZATION_FLAGS}" echo "${ARCH_FLAGS} ${LINKED_LIBRARIES} ${COMMON_FLAGS} ${OPTIMIZATION_FLAGS}"