Skip to content

Allow builders to override CPU_OPTION - #288

Merged
sonicdcer merged 1 commit into
HarbourMasters:mainfrom
JeodC:override-cpuoption
Sep 15, 2026
Merged

sonicdcer merged 1 commit into
HarbourMasters:mainfrom
JeodC:override-cpuoption

Conversation

@JeodC

@JeodC JeodC commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Distributed builds currently use mcpu=native, and there's no guarantee that a distribution user's cpu will have the same instructions. For example, GitHub's ubuntu-24.04-arm runners carry SVE but the distribution is intended for SoCs that don't have SVE. The result is an immediate illegal instruction crash. To resolve, allow builders to define CPU_OPTION themselves: wrap the block in if(NOT DEFINED CPU_OPTION). Local builds are unchanged and still get -mcpu=native; packagers can pin a portable baseline instead.

@sonicdcer
sonicdcer merged commit 3322643 into HarbourMasters:main Sep 15, 2026
3 of 4 checks passed
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