Skip to content

Fix build error on vsinpu provider#27984

Open
HungMingWu wants to merge 2 commits into
microsoft:mainfrom
HungMingWu:main
Open

Fix build error on vsinpu provider#27984
HungMingWu wants to merge 2 commits into
microsoft:mainfrom
HungMingWu:main

Conversation

@HungMingWu

@HungMingWu HungMingWu commented Apr 6, 2026

Copy link
Copy Markdown

There are two places to need fix.

  1. onnxruntime_config.h, but it exists at ${CMAKE_CURRENT_BINARY_DIR} directory, other providers, like openvino, qnn have been include ${CMAKE_CURRENT_BINARY_DIR}
  2. onnxruntime_providers_vsinpu need to export to install set.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 fixes a VSINPU provider build failure by ensuring the provider target can include the generated onnxruntime_config.h header, which is emitted into the CMake binary directory during configure.

Changes:

  • Add ${CMAKE_CURRENT_BINARY_DIR} to the include directories for onnxruntime_providers_vsinpu so #include "onnxruntime_config.h" resolves during compilation.

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

@HungMingWu

Copy link
Copy Markdown
Author

I think the regression is not related to the MR.

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