Skip to content

arm64 build: gate -msse* flags by target arch - #2

Closed
kkHAIKE wants to merge 1 commit into
darlinghq:masterfrom
kkHAIKE:arm64-support
Closed

kkHAIKE wants to merge 1 commit into
darlinghq:masterfrom
kkHAIKE:arm64-support

Conversation

@kkHAIKE

@kkHAIKE kkHAIKE commented May 20, 2026

Copy link
Copy Markdown

clang 11 silently dropped -msse/-msse2/-msse3 when targeting aarch64; clang 16+ errors on them. Wrap the SSE compile flags inside TARGET_i386 OR TARGET_x86_64 so Darling builds cleanly on aarch64 hosts regardless of which clang is in use. No behavior change on x86 builds.

Part of the ARM64 support series.

clang 11 silently dropped -msse/-msse2/-msse3 when targeting aarch64;
clang 19 errors on them. Wrap the SSE compile flags in TARGET_i386 /
TARGET_x86_64 guards so Darling builds cleanly under any clang.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@LubosD

LubosD commented Nov 7, 2026

Copy link
Copy Markdown
Member

Thank you for this work. The changes in this PR are now present in the revision of this repository that darling master pins (the arm64 support was integrated through darlinghq/darling#1818), so I am closing it as superseded. Please reopen if you see anything here that is still missing.

@LubosD LubosD closed this Nov 7, 2026
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