mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-25 05:51:55 -08:00
install: add build instructions for emscripten
This commit is contained in:
parent
4b02cea2d2
commit
63ff85ef7f
3 changed files with 115 additions and 0 deletions
21
src/util/wasm32-unknown-emscripten.cross_config
Normal file
21
src/util/wasm32-unknown-emscripten.cross_config
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
CL_FIXNUM_TYPE=int
|
||||
CL_FIXNUM_BITS=32
|
||||
CL_FIXNUM_MAX=536870911L
|
||||
CL_FIXNUM_MIN=-536870912L
|
||||
CL_INT_BITS=32
|
||||
CL_LONG_BITS=32
|
||||
ECL_STACK_DIR=down
|
||||
ECL_BIGENDIAN=no
|
||||
ECL_NEWLINE=LF
|
||||
ECL_FILE_CNT=0
|
||||
ECL_STDINT_HEADER="#include <stdint.h>"
|
||||
ECL_UINT8_T=uint8_t
|
||||
ECL_UINT16_T=uint16_t
|
||||
ECL_UINT32_T=uint32_t
|
||||
ECL_UINT64_T=uint64_t
|
||||
ECL_INT8_T=int8_t
|
||||
ECL_INT16_T=int16_t
|
||||
ECL_INT32_T=int32_t
|
||||
ECL_INT64_T=int64_t
|
||||
ECL_LONG_LONG_BITS=64
|
||||
ECL_WORKING_ENVIRON=yes
|
||||
15
src/util/webserver.lisp
Normal file
15
src/util/webserver.lisp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
;;; bsd-2-clause, (c) 2022, Daniel Kochmański
|
||||
|
||||
(eval-when (:compile-toplevel :load-toplevel :execute)
|
||||
(ql:quickload "hunchentoot"))
|
||||
|
||||
(defpackage #:webserver
|
||||
(:use #:cl #:hunchentoot))
|
||||
(in-package #:webserver)
|
||||
|
||||
(defvar *acceptor*
|
||||
(make-instance 'hunchentoot:easy-acceptor :port 8888))
|
||||
|
||||
(print `(serving ,(ext:getcwd)))
|
||||
(push (create-folder-dispatcher-and-handler "/" (uiop/os:getcwd)) *dispatch-table*)
|
||||
(start *acceptor*)
|
||||
Loading…
Add table
Add a link
Reference in a new issue