Skip to content

Fix macOS cross-architecture build on arm64 when target arch is x86_64#582

Merged
shibd merged 1 commit into
apache:mainfrom
BewareMyPower:bewaremypower/fix-macos-ci
May 29, 2026
Merged

Fix macOS cross-architecture build on arm64 when target arch is x86_64#582
shibd merged 1 commit into
apache:mainfrom
BewareMyPower:bewaremypower/fix-macos-ci

Conversation

@BewareMyPower
Copy link
Copy Markdown
Contributor

Fix failure like https://github.com/apache/pulsar-client-cpp/actions/runs/26558894568/job/78281724880

The runner is macos-14, which is arm64, but the workflow sets:

CMAKE_OSX_ARCHITECTURES=x86_64

The old CMake logic checked only CMAKE_SYSTEM_PROCESSOR == x86_64. On that runner, CMAKE_SYSTEM_PROCESSOR still reports the host architecture, arm64, so CMake skipped the x86 compile flags: -msse4.2 -mpclmul.

@BewareMyPower BewareMyPower self-assigned this May 28, 2026
@BewareMyPower
Copy link
Copy Markdown
Contributor Author

Let's see if the workflow here would succeed: https://github.com/BewareMyPower/pulsar-client-cpp/actions/runs/26575230054

@BewareMyPower BewareMyPower added this to the 4.2.0 milestone May 28, 2026
@BewareMyPower
Copy link
Copy Markdown
Contributor Author

image The candidate release is fine.

@shibd shibd merged commit a169e10 into apache:main May 29, 2026
14 checks passed
@BewareMyPower BewareMyPower deleted the bewaremypower/fix-macos-ci branch June 1, 2026 02:18
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