Skip to content

fix: macOS cross-compilation - #39

Merged
alnitak merged 1 commit into
alnitak:mainfrom
Vild:fix/macos_universal_binary
Jul 2, 2025
Merged

fix: macOS cross-compilation#39
alnitak merged 1 commit into
alnitak:mainfrom
Vild:fix/macos_universal_binary

Conversation

@Vild

@Vild Vild commented Jul 2, 2025

Copy link
Copy Markdown
Contributor

Description

Removes -march=native and -mtune=native from the podspec.
As these break cross-compilation of the library for x86_64, while on an arm64 mac.
Which is part of the flutter's compilation for macOS.

The Clang error that was thrown was: "error: unknown target CPU 'apple-m1'"
and it only happened on release builds.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

Removes -march=native and -mtune=native from the podspec.
As these break cross-compilation of the library for x86_64, while on an arm64 mac.
Which is part of the flutter's compilation for macOS.

The Clang error that was thrown was: "error: unknown target CPU 'apple-m1'"
and it only happened on release builds.

Signed-off-by: Dan Printzell <dan@dagg.ai>
@alnitak

alnitak commented Jul 2, 2025

Copy link
Copy Markdown
Owner

Thank you! I only have a hackintosh and I didn't notice this issue.

@alnitak
alnitak merged commit a970b72 into alnitak:main Jul 2, 2025
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