diff --git a/Makefile.clang b/Makefile.clang index d1f5017..e09b2bd 100644 --- a/Makefile.clang +++ b/Makefile.clang @@ -46,7 +46,7 @@ build/stdlib.o: include/ckb-c-stdlib/libc/src/impl.c @$(CC) $(filter-out -DCKB_DECLARATION_ONLY, $(CFLAGS)) -c -o $@ $< lualib/liblua.a: - make -C lualib -f Makefile.clang liblua.a + make -C lualib -f Makefile.clang CC=$(CC) liblua.a build/spawnexample.o: examples/spawn.c $(CC) -c $(CFLAGS) -o $@ $< diff --git a/lualib/Makefile.clang b/lualib/Makefile.clang index d56a712..366e419 100644 --- a/lualib/Makefile.clang +++ b/lualib/Makefile.clang @@ -6,7 +6,7 @@ # Your platform. See PLATS for possible values. PLAT= guess -CC= clang-16 +CC ?= clang-16 # -ULUA_USE_LINUX -ULUA_USE_POSIX to make lua dependencies minimal, # otherwise, we may unable to find various platform dependent symbols, e.g. # setsignal.