Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/ci_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,15 +889,15 @@ def generate_build_tree(
# * Leave disabled if "no_kleidiai" argument was specified.
# * Enable if the target is Android and args.android_abi contains arm64*
# * Enable for a Windows cross compile build if compile target is an Arm one.
# * Finally enable if platform.machine contains "arm64". This should cover the following cases:
# * Finally enable if platform.machine contains "arm64" and not a WebAssembly build. This should cover the following cases:
# * Linux on Arm
# * MacOs (case must be ignored)
# * TODO Delegate responsibility for Onnxruntime_USE_KLEIDIAI = ON to CMake logic
if not args.no_kleidiai:
if (
(args.android and "arm64" in args.android_abi.lower())
or (is_windows() and (args.arm64 or args.arm64ec or args.arm) and platform.architecture()[0] != "AMD64")
or ("arm64" in platform.machine().lower())
or ("arm64" in platform.machine().lower() and not args.build_wasm)
):
cmake_args += ["-Donnxruntime_USE_KLEIDIAI=ON"]

Expand Down
Loading