Skip to content

Fix QT_ARCH Apple Silicon build bug#3745

Draft
ann0see wants to merge 1 commit into
jamulussoftware:mainfrom
ann0see:macOS/fixASBuild
Draft

Fix QT_ARCH Apple Silicon build bug#3745
ann0see wants to merge 1 commit into
jamulussoftware:mainfrom
ann0see:macOS/fixASBuild

Conversation

@ann0see

@ann0see ann0see commented Jun 19, 2026

Copy link
Copy Markdown
Member

Short description of changes
Removes opus optimizations on macOS to allow building on M series chips. This is very hacky and needs some more discussion. The CI seems to build differently - and it works without this fix. Local builds however fail as the QT_ARCH variable does not contain arm64 even if compiling on arm64.

CHANGELOG: Fix build on macOS (Apple Silicon)
Context: Fixes an issue?

Does this change need documentation? What needs to be documented and how?

Status of this Pull Request

Ready for review and discussion.

What is missing until this pull request can be merged?

Checklist

  • I've verified that this Pull Request follows the general code principles
  • I tested my code and it does what I want
  • My code follows the style guide
  • I waited some time after this Pull Request was opened and all GitHub checks completed without errors.
  • I've filled all the content above

AUTOBUILD: Please build all targets

@ann0see ann0see marked this pull request as draft June 19, 2026 20:57
@ann0see ann0see force-pushed the macOS/fixASBuild branch from f29b215 to 15ddc58 Compare June 19, 2026 21:09
@ann0see ann0see force-pushed the macOS/fixASBuild branch from 15ddc58 to 6d6e6a5 Compare June 19, 2026 21:16
Comment thread Jamulus.pro
libs/opus/silk/x86/VQ_WMat_EC_sse4_1.c

contains(QT_ARCH, armeabi-v7a) | contains(QT_ARCH, arm64-v8a) {
contains(QT_ARCH, armeabi-v7a) | contains(QT_ARCH, arm64-v8a) | contains(QT_ARCH, arm64) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will potentially enable vectorisation on arm64 devices.

Comment thread Jamulus.pro
DEFINES_OPUS += OPUS_BUILD=1 USE_ALLOCA=1 OPUS_HAVE_RTCD=1 HAVE_LRINTF=1 HAVE_LRINT=1
DEFINES_OPUS += OPUS_BUILD=1 USE_ALLOCA=1 HAVE_LRINTF=1 HAVE_LRINT=1

!macx | !contains(QT_ARCH, x86_64) {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would hope that there is some variable which is definitely arm64 on apple silicon and x86 on intel... Then we could probably use it.

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.

1 participant