Skip to content

Build universal (arm64+x86_64) macOS binaries - #331

Open
hlship wants to merge 2 commits into
Dialog-IF:mainfrom
hlship:hlship/260813-macos-universal-build
Open

Build universal (arm64+x86_64) macOS binaries#331
hlship wants to merge 2 commits into
Dialog-IF:mainfrom
hlship:hlship/260813-macos-universal-build

Conversation

@hlship

@hlship hlship commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Build dialogc/dgdebug as fat binaries on macOS by passing -arch arm64 -arch x86_64 in CFLAGS/LDFLAGS when uname -s is Darwin, leaving Linux and the mingw cross-builds untouched.
  • Rename the macOS CI artifact from macos-arm64 to macos-universal to reflect the change (both the upload step and the release-bundling step).

Closes #330

Test plan

  • make --directory=./src clean all on macOS (Apple Silicon) and confirmed lipo -info reports both x86_64 and arm64 for dialogc and dgdebug
  • CI: build-macos job builds and make test passes with the universal binaries

hlship and others added 2 commits August 13, 2026 19:14
Add arm64 and x86_64 -arch flags on Darwin so dialogc and dgdebug
build as fat binaries instead of native-arch only.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Reflects the macOS build now producing fat arm64+x86_64 binaries.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@hlship hlship self-assigned this Aug 14, 2026
@hlship hlship added the enhancement New feature or request label Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Mac Intel as well as Mac Arm

1 participant