Skip to content

Commit 371f782

Browse files
authored
Merge pull request #39 from cyhcyhgo/patch-1
Fix build failure: Disable -Werror for KhiCAS/MicroPython on newer toolchains
2 parents f0f8753 + 92cdf14 commit 371f782

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/KhiCAS/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ src/lib/libmpfr.a src/include/mpfr.h: src/lib/libgmp.a src/include/gmp.h libDire
7676
cp src/mpfr.h ../include/mpfr.h
7777
src/lib/libmicropy.a: libDirectory
7878
cd src/micropython-1.12/numworks
79+
80+
# Due to the update of compiler, we must ignore the error
81+
sed -i 's/\$$(CC) \$$(CFLAGS)/\$$(CC) \$$(CFLAGS) -Wno-error/g' ../py/mkrules.mk || true
7982
# We need to use a script to build MicroPython, because the make command crashes in MicroPython because it tries to link without the required libraries
8083
./mklib
8184

0 commit comments

Comments
 (0)