Skip to content

Conversation

@JoachimSchurig
Copy link

Description

recent versions of sse2neon.h (included through simd_utils) do not build using clang and with -flax-vector-conversions.
clang builds (other than gcc) do not need this option though, therefore do not add it if clang is used.
Current code, when configured on ARM, configures with simd_utils, and -flax-vector-conversions.

List of changes:

  • main CMakeLists.txt, only add -flax-vector-conversions if compiler is not clang

Added dependencies: none

How to test

Try to build current code with clang on any ARM CPU against latest simd-utils. The build will fail.
With this patch applied, the build passes on ARM, with clang.

Checklist

  • I have tested the code manually
  • I have run regression tests
  • I have read and followed CONTRIBUTING.md
  • I have updated CHANGELOG.md

recent versions of sse2neon.h (included through simd_utils) do not build using (apple) clang and -flax-vector-conversions.

(apple) clang builds (other than gcc) do not need this option though, therefore do not add it if clang is used.
xxnuo added a commit to xxnuo/marian-dev that referenced this pull request Aug 25, 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.

1 participant