Skip to content

Commit 8e3bf0e

Browse files
committed
fix build
1 parent f96bc89 commit 8e3bf0e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

backends/qualcomm/scripts/download_qnn_sdk.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,12 @@ def _install_glibc_234():
304304
env.pop("LD_LIBRARY_PATH", None)
305305
# allow warnings
306306
# env["CFLAGS"] = "-O2 -Wno-error"
307-
env["CFLAGS"] = "-O2 -Wno-error" # prevent warnings-as-errors
308-
env["CC"] = "gcc" # explicit, avoids surprises
307+
# env["CFLAGS"] = "-O2 -Wno-error" # prevent warnings-as-errors
308+
# env["CC"] = "gcc" # explicit, avoids surprises
309+
env["CFLAGS"] = (
310+
"-O2 -Wno-error=array-parameter -Wno-error=stringop-overflow -Wno-error"
311+
)
312+
env["CC"] = "gcc"
309313

310314
# Configure
311315
cmd = [f"../glibc-{GLIBC_VERSION}/configure", f"--prefix={GLIBC_ROOT}"]

0 commit comments

Comments
 (0)