Skip to content

Commit 12c6929

Browse files
committed
patch glibc check one more place
1 parent 063d3c8 commit 12c6929

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

backends/qualcomm/scripts/download_qnn_sdk.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def check_glibc_exist() -> bool:
4545
"""
4646
Check if users have glibc installed.
4747
"""
48+
print("[QNN] Checking glibc exist running on Linux x86")
4849
paths = ["/lib/x86_64-linux-gnu/libc.so.6", "/lib64/libc.so.6", "/lib/libc.so.6"]
4950

5051
exists = any(os.path.isfile(p) for p in paths)
@@ -63,6 +64,7 @@ def check_glibc_exist() -> bool:
6364
sudo pacman -S glibc
6465
"""
6566
)
67+
print("[QNN] glibc exists: ", exists)
6668
return exists
6769

6870

@@ -144,7 +146,7 @@ def _download_qnn_sdk(dst_folder=SDK_DIR) -> Optional[pathlib.Path]:
144146
)
145147
QAIRT_CONTENT_DIR = f"qairt/{QNN_VERSION}"
146148

147-
if not is_linux_x86() and not check_glibc_exist():
149+
if not is_linux_x86() or not check_glibc_exist():
148150
logger.info("Skipping Qualcomm SDK (only supported on Linux x86).")
149151
return None
150152
else:

0 commit comments

Comments
 (0)