Skip to content

Instantly share code, notes, and snippets.

@mrryanjohnston
Last active June 28, 2023 13:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrryanjohnston/b4dbe76d8fd82815a66ef622366b3edb to your computer and use it in GitHub Desktop.
Save mrryanjohnston/b4dbe76d8fd82815a66ef622366b3edb to your computer and use it in GitHub Desktop.
Compiling CLIPS to WASM
69c69
< release : CC = gcc
---
> release : CC = emcc
94c94
< $(CC) -o clips main.o -L. -lclips $(LDLIBS)
---
> $(CC) -o clips main.o -L. -lclips -sEXPORTED_FUNCTIONS=_CreateEnvironment,_BatchStar,_Clear,_Reset $(LDLIBS)
98c98
< ar cq $@ $(OBJS)
---
> emar cq $@ $(OBJS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment