Skip to content

Commit

Permalink
fix rubberband x86-64 builds on xcode 15.x
Browse files Browse the repository at this point in the history
  • Loading branch information
tanersener committed Apr 18, 2024
1 parent 80d6af6 commit 9d2d4b1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 26 deletions.
8 changes: 4 additions & 4 deletions scripts/function-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ get_app_specific_cflags() {
libwebp | xvidcore)
APP_FLAGS="-fno-common -DPIC"
;;
openh264 | openssl | x265)
APP_FLAGS="-Wno-unused-function"
;;
sdl)
APP_FLAGS="-DPIC -Wno-declaration-after-statement -Wno-unused-function -D__IPHONEOS__"
;;
Expand All @@ -232,9 +235,6 @@ get_app_specific_cflags() {
soxr | snappy)
APP_FLAGS="-std=gnu99 -Wno-unused-function -DPIC"
;;
openh264 | openssl | x265)
APP_FLAGS="-Wno-unused-function"
;;
*)
APP_FLAGS="-std=c99 -Wno-unused-function"
;;
Expand Down Expand Up @@ -310,7 +310,7 @@ get_cxxflags() {
echo "-fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
rubberband)
echo "-fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
echo "-fno-rtti -Wno-c++11-narrowing ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
srt | tesseract | zimg)
echo "-std=c++11 ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
Expand Down
23 changes: 10 additions & 13 deletions scripts/function-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ get_arch_specific_cflags() {
}

get_size_optimization_cflags() {

local ARCH_OPTIMIZATION=""
case ${ARCH} in
arm64)
Expand All @@ -117,7 +116,6 @@ get_size_optimization_cflags() {
}

get_size_optimization_asm_cflags() {

local ARCH_OPTIMIZATION=""
case $1 in
jpeg | ffmpeg)
Expand All @@ -139,18 +137,17 @@ get_size_optimization_asm_cflags() {
}

get_app_specific_cflags() {

local APP_FLAGS=""
case $1 in
fontconfig)
APP_FLAGS="-std=c99 -Wno-unused-function"
;;
ffmpeg)
APP_FLAGS="-Wno-unused-function -Wno-deprecated-declarations"
;;
ffmpeg-kit)
APP_FLAGS="-std=c99 -Wno-unused-function -Wall -Wno-deprecated-declarations -Wno-pointer-sign -Wno-switch -Wno-unused-result -Wno-unused-variable -DPIC -fobjc-arc"
;;
fontconfig)
APP_FLAGS="-std=c99 -Wno-unused-function"
;;
gnutls)
APP_FLAGS="-std=c99 -Wno-unused-function -D_GL_USE_STDLIB_ALLOC=1"
;;
Expand All @@ -166,6 +163,9 @@ get_app_specific_cflags() {
libwebp | xvidcore)
APP_FLAGS="-fno-common -DPIC"
;;
openh264 | x265)
APP_FLAGS="-Wno-unused-function"
;;
sdl)
APP_FLAGS="-DPIC -Wno-unused-function -D__MACOSX__"
;;
Expand All @@ -175,9 +175,6 @@ get_app_specific_cflags() {
soxr | snappy)
APP_FLAGS="-std=gnu99 -Wno-unused-function -DPIC"
;;
openh264 | x265)
APP_FLAGS="-Wno-unused-function"
;;
*)
APP_FLAGS="-std=c99 -Wno-unused-function"
;;
Expand Down Expand Up @@ -227,9 +224,6 @@ get_cxxflags() {
local BITCODE_FLAGS=""

case $1 in
x265)
echo "-std=c++11 -fno-exceptions ${BITCODE_FLAGS} ${COMMON_CFLAGS}"
;;
gnutls)
echo "-std=c++11 -fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
Expand All @@ -246,11 +240,14 @@ get_cxxflags() {
echo "-fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
rubberband)
echo "-fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
echo "-fno-rtti -Wno-c++11-narrowing ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
srt | tesseract | zimg)
echo "-std=c++11 ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
x265)
echo "-std=c++11 -fno-exceptions ${BITCODE_FLAGS} ${COMMON_CFLAGS}"
;;
*)
echo "-std=c++11 -fno-exceptions -fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
Expand Down
18 changes: 9 additions & 9 deletions scripts/function-tvos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ get_app_specific_cflags() {
ffmpeg)
APP_FLAGS="-Wno-unused-function -Wno-deprecated-declarations"
;;
ffmpeg-kit)
APP_FLAGS="-std=c99 -Wno-unused-function -Wall -Wno-deprecated-declarations -Wno-pointer-sign -Wno-switch -Wno-unused-result -Wno-unused-variable -DPIC -fobjc-arc"
;;
gnutls)
APP_FLAGS="-std=c99 -Wno-unused-function -D_GL_USE_STDLIB_ALLOC=1"
;;
Expand All @@ -196,8 +199,8 @@ get_app_specific_cflags() {
libwebp | xvidcore)
APP_FLAGS="-fno-common -DPIC"
;;
ffmpeg-kit)
APP_FLAGS="-std=c99 -Wno-unused-function -Wall -Wno-deprecated-declarations -Wno-pointer-sign -Wno-switch -Wno-unused-result -Wno-unused-variable -DPIC -fobjc-arc"
openh264 | x265)
APP_FLAGS="-Wno-unused-function"
;;
sdl)
APP_FLAGS="-DPIC -Wno-unused-function -D__TVOS__"
Expand All @@ -208,9 +211,6 @@ get_app_specific_cflags() {
soxr | snappy)
APP_FLAGS="-std=gnu99 -Wno-unused-function -DPIC"
;;
openh264 | x265)
APP_FLAGS="-Wno-unused-function"
;;
*)
APP_FLAGS="-std=c99 -Wno-unused-function"
;;
Expand Down Expand Up @@ -267,9 +267,6 @@ get_cxxflags() {
esac

case $1 in
x265)
echo "-std=c++11 -fno-exceptions ${BITCODE_FLAGS} ${COMMON_CFLAGS}"
;;
gnutls)
echo "-std=c++11 -fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
Expand All @@ -286,11 +283,14 @@ get_cxxflags() {
echo "-fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
rubberband)
echo "-fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
echo "-fno-rtti -Wno-c++11-narrowing ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
srt | tesseract | zimg)
echo "-std=c++11 ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
x265)
echo "-std=c++11 -fno-exceptions ${BITCODE_FLAGS} ${COMMON_CFLAGS}"
;;
*)
echo "-std=c++11 -fno-exceptions -fno-rtti ${BITCODE_FLAGS} ${COMMON_CFLAGS} ${OPTIMIZATION_FLAGS}"
;;
Expand Down

0 comments on commit 9d2d4b1

Please sign in to comment.