From 058150f22185e146367bd8ca8eb9c6cc4197a061 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Sat, 20 May 2023 16:48:03 +0200 Subject: [PATCH] pkg/micropython: fix compilation with clang --- pkg/micropython/Makefile | 4 +++- pkg/micropython/Makefile.include | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/micropython/Makefile b/pkg/micropython/Makefile index d5fc6f1851..566013b74e 100644 --- a/pkg/micropython/Makefile +++ b/pkg/micropython/Makefile @@ -11,6 +11,8 @@ PKG_BUILD_OUT_OF_SOURCE = 0 include $(RIOTBASE)/pkg/pkg.mk +# Note: We have to explicitly override CC, as otherwise micropython will +# set its own CC. all: @mkdir -p $(PKG_BUILD_DIR)/tmp - BUILD=$(PKG_BUILD_DIR) "$(MAKE)" -C $(PKG_SOURCE_DIR)/ports/riot + BUILD=$(PKG_BUILD_DIR) "$(MAKE)" CC=$(CC) -C $(PKG_SOURCE_DIR)/ports/riot diff --git a/pkg/micropython/Makefile.include b/pkg/micropython/Makefile.include index b1aba6239a..27ed3d067d 100644 --- a/pkg/micropython/Makefile.include +++ b/pkg/micropython/Makefile.include @@ -10,6 +10,3 @@ INCLUDES += -I$(BINDIR)/pkg/micropython/ports/riot # include archive ARCHIVES += $(BINDIR)/micropython.a - -# The port currently doesn't build with llvm -TOOLCHAINS_BLACKLIST += llvm