Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cmake: filter unsupported armv8-a flags for Apple Clang#28206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
VISHIV05 wants to merge1 commit intoopencv:4.x
base:4.x
Choose a base branch
Loading
fromVISHIV05:Embined

Conversation

@VISHIV05
Copy link

@VISHIV05VISHIV05 commentedDec 17, 2025
edited
Loading

Summary

Fix build failure on macOS caused by passing-march=armv8-a to Apple Clang
when KleidiCV is enabled.

Root cause

KleidiCV propagates-march=armv8-a via its compile options. Apple Clang
does not recognize this CPU target and fails with
unknown target CPU 'armv8-a'.

Fix

Filter out the unsupported-march=armv8-a flag at the OpenCV integration
layer (hal/kleidicv/CMakeLists.txt) when building on macOS with Apple Clang,
while preserving the flag for other ARM toolchains.

Impact

  • Fixes macOS (Apple Clang) builds with KleidiCV enabled
  • No change to Linux / Android ARM builds
  • Does not modify third-party KleidiCV sources

Fixes#28187

Pull Request Readiness Checklist

See details athttps://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

compile error "unknown target CPU 'armv8-a'" on macOS with KleidiCV

1 participant

@VISHIV05

[8]ページ先頭

©2009-2025 Movatter.jp