Skip to content

Commit 367196b

Browse files
committed
guard minimum glibc
1 parent c7b6982 commit 367196b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

backends/qualcomm/scripts/download_qnn_sdk.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,14 @@ def _download_qnn_sdk(dst_folder=SDK_DIR) -> Optional[pathlib.Path]:
181181
)
182182
QAIRT_CONTENT_DIR = f"qairt/{QNN_VERSION}"
183183

184-
if not is_linux_x86() or not check_glibc_exist_and_validate():
184+
if not is_linux_x86():
185185
logger.info("Skipping Qualcomm SDK (only supported on Linux x86).")
186186
return None
187+
elif not check_glibc_exist_and_validate():
188+
logger.info("Skipping Qualcomm SDK (glibc not found or version too old).")
189+
return None
187190
else:
188-
logger.info("Downloading Qualcomm SDK for Linux x86!!!!")
191+
logger.info("Downloading Qualcomm SDK for Linux x86")
189192

190193
dst_folder.mkdir(parents=True, exist_ok=True)
191194

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,9 @@ def run(self):
471471
is_linux_x86,
472472
)
473473

474+
print("runnig check_glibc_exist_and_validate")
475+
check_glibc_exist_and_validate()
476+
474477
if is_linux_x86() and check_glibc_exist_and_validate():
475478
os.environ["EXECUTORCH_BUILDING_WHEEL"] = "1"
476479

0 commit comments

Comments
 (0)