Skip to content

build: add Objective-C ARC support for NPU sources#475

Merged
HenryNdubuaku merged 1 commit intomainfrom
objc-arc-support
Feb 28, 2026
Merged

build: add Objective-C ARC support for NPU sources#475
HenryNdubuaku merged 1 commit intomainfrom
objc-arc-support

Conversation

@jakmro
Copy link
Copy Markdown
Collaborator

@jakmro jakmro commented Feb 28, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 28, 2026 20:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Apple build and iOS test harness to support Objective-C ARC when compiling the ANE NPU Objective-C++ source, ensuring the CoreML-based implementation builds cleanly.

Changes:

  • Enable -fobjc-arc for the ANE NPU Objective-C++ source (npu_ane.mm) in the Apple CMake build.
  • Add explicit extern prototypes for auto-discovered iOS test entrypoints in the generated AppDelegate.mm.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/ios/CactusTest/CactusTest/AppDelegate.mm Adds extern int test_*_main(); declarations for the generated iOS test runner calls.
apple/CmakeLists.txt Applies -fobjc-arc compile flag to the ANE NPU Objective-C++ source file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@HenryNdubuaku HenryNdubuaku merged commit 1b36e80 into main Feb 28, 2026
7 of 8 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.

3 participants