Skip to content

Fix iOS FFmpeg toolchain selection for asm objects#2

Merged
Mivik merged 2 commits into
mainfrom
fix/ios-asm-sdk
Mar 24, 2026
Merged

Fix iOS FFmpeg toolchain selection for asm objects#2
Mivik merged 2 commits into
mainfrom
fix/ios-asm-sdk

Conversation

@sjfhsjfh

@sjfhsjfh sjfhsjfh commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

Summary:

  • keep the iOS and iOS simulator toolchain commands in target config
  • pass --cc, --cxx, --as, and --ld explicitly to FFmpeg configure for Apple mobile targets
  • prevent configure from falling back to host gcc, which produced macOS asm objects in iOS archives

Root cause:

  • on the recent macOS runner image, FFmpeg configure ended up with CC=gcc, AS=gcc, and LD=gcc in ffbuild/config.mak for aarch64-apple-ios
  • C objects still used the iPhoneOS sysroot from CFLAGS, but asm objects such as float_dsp_neon.o were assembled as macOS objects
  • explicitly wiring the toolchain into configure makes the asm objects build for iOS again

Validation:

  • reproduced locally by inspecting ffbuild/config.mak and Mach-O load commands
  • before this change, float_dsp_neon.o was platform 1 (macOS)
  • with this change, float_dsp_neon.o becomes platform 2 (iOS)

Testing:

  • local reproduction of python3 scripts/build-ffmpeg.py aarch64-apple-ios
  • CI workflow_dispatch on this branch should regenerate the iOS artifacts

Attribution:

  • prepared with Codex (OpenAI) under user direction

@Mivik Mivik merged commit 96a8443 into main Mar 24, 2026
18 checks passed
@Mivik Mivik deleted the fix/ios-asm-sdk branch March 24, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants