From a791be936a79154a1b1e600e5e75d147396847f6 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 22 Apr 2016 22:53:51 +0000 Subject: unix: Add basic thread support using pthreads. Has the ability to create new threads. --- unix/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'unix/Makefile') diff --git a/unix/Makefile b/unix/Makefile index 3e0d299d8..72f35c38c 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -93,6 +93,10 @@ ifeq ($(MICROPY_PY_SOCKET),1) CFLAGS_MOD += -DMICROPY_PY_SOCKET=1 SRC_MOD += modsocket.c endif +ifeq ($(MICROPY_PY_THREAD),1) +CFLAGS_MOD += -DMICROPY_PY_THREAD=1 +LDFLAGS_MOD += -lpthread +endif ifeq ($(MICROPY_PY_FFI),1) @@ -128,6 +132,7 @@ SRC_C = \ main.c \ gccollect.c \ unix_mphal.c \ + mpthreadport.c \ input.c \ file.c \ modmachine.c \ -- cgit v1.2.3