mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 03:01:51 +08:00
Fix lengthBytesUTF8 not a function (#255)
* Add lengthBytesUTF8 as an exported runtime method * Also export printErr as a runtime method --------- Co-authored-by: Austen Adler <agadler@austenadler.com>
This commit is contained in:
parent
923112172d
commit
340e5d1a4a
1
rules.mk
1
rules.mk
|
@ -18,6 +18,7 @@ $(BUILD)/$(BIN).html: $(OBJS)
|
||||||
@echo HTML $@
|
@echo HTML $@
|
||||||
@$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ \
|
@$(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ \
|
||||||
-s ASYNCIFY=1 \
|
-s ASYNCIFY=1 \
|
||||||
|
-s EXPORTED_RUNTIME_METHODS=lengthBytesUTF8,printErr \
|
||||||
-s EXPORTED_FUNCTIONS=_main \
|
-s EXPORTED_FUNCTIONS=_main \
|
||||||
--shell-file=$(TOP)/watch-library/simulator/shell.html
|
--shell-file=$(TOP)/watch-library/simulator/shell.html
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue