Initial draft of pthread-based impl

This commit is contained in:
Michal Moskal
2017-07-03 13:57:34 +02:00
parent a1fc4290f4
commit f0a7990efa
3 changed files with 125 additions and 58 deletions

View File

@ -19,7 +19,7 @@ DEPS = $(PXT_HEADERS) package.json Makefile Makefile.inc
all: $(EXE)
$(EXE): $(PXT_OBJS)
$(LD) -o $(EXE) $(LDFLAGS) -Wl,-Map,$(EXE:.elf=.map) $(PXT_OBJS) $(LIBSTDCPP) -lm $(NPM_LIBS)
$(LD) -o $(EXE) $(LDFLAGS) -Wl,-Map,$(EXE:.elf=.map) $(PXT_OBJS) $(LIBSTDCPP) -lm -lpthread $(NPM_LIBS)
cp $(EXE) $(EXE:.elf=.full)
$(PREF)strip $(EXE)
node -p 'require("fs").readFileSync("$(EXE)").toString("hex")' > $(HEX)