Skip to content

Commit d5fa7d7

Browse files
committed
fix: alert users that macosx is not supported
1 parent d2aa141 commit d5fa7d7

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

backends/qualcomm/scripts/build.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,22 @@
55
# This source code is licensed under the BSD-style license found in the
66
# LICENSE file in the root directory of this source tree.
77
set -e
8-
set -o xtrace
8+
9+
# Check if running on macOS/Darwin
10+
if [[ "$(uname -s)" == "Darwin" ]]; then
11+
echo "Error: Qualcomm backend Python interface requires Linux operating system."
12+
echo "macOS/Darwin is not supported for building the Qualcomm backend."
13+
echo "Please use a x64 Linux system or x64 Linux container to build this backend."
14+
exit 1
15+
fi
916

1017
if [[ -z ${QNN_SDK_ROOT} ]]; then
1118
echo "Please export QNN_SDK_ROOT=/path/to/qnn_sdk"
1219
exit -1
1320
fi
1421

1522

23+
set -o xtrace
1624

1725
usage() {
1826
echo "Usage: Build the aarch64 version of executor runner or the python interface of Qnn Manager"

0 commit comments

Comments
 (0)