Skip to content

Commit

Permalink
Add explicit build error when qnn-ep is build as static library
Browse files Browse the repository at this point in the history
with generic ORT interface
  • Loading branch information
Karim Vadsariya committed Jan 22, 2025
1 parent 5e60459 commit f91b016
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/ci_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1400,6 +1400,8 @@ def generate_build_tree(
cmake_args += ["-Donnxruntime_BUILD_QNN_EP_STATIC_LIB=ON"]
if args.android and args.use_qnn != "static_lib":
raise BuildError("Only support Android + QNN builds with QNN EP built as a static library.")
if args.use_qnn == "static_lib" and args.enable_generic_interface:
raise BuildError("Generic ORT interface only supported with QNN EP built as a shared library.")

if args.use_coreml:
cmake_args += ["-Donnxruntime_USE_COREML=ON"]
Expand Down

0 comments on commit f91b016

Please sign in to comment.