2018-10-02 01:16:04 +00:00
|
|
|
export PATH := $(PYODIDE_ROOT)/ccache:$(PYODIDE_ROOT)/emsdk/emsdk:$(PYODIDE_ROOT)/emsdk/emsdk/clang/tag-e1.38.12/build_tag-e1.38.12_64/bin:$(PYODIDE_ROOT)/emsdk/emsdk/node/8.9.1_64bit/bin:$(PYODIDE_ROOT)/emsdk/emsdk/emscripten/tag-1.38.12:$(PYODIDE_ROOT)/emsdk/emsdk/binaryen/tag-1.38.12_64bit_binaryen/bin:$(PATH)
|
2018-05-31 22:46:57 +00:00
|
|
|
|
2018-04-02 14:33:19 +00:00
|
|
|
export EMSDK = $(PYODIDE_ROOT)/emsdk/emsdk
|
|
|
|
export EM_CONFIG = $(PYODIDE_ROOT)/emsdk/emsdk/.emscripten
|
|
|
|
export EM_CACHE = $(PYODIDE_ROOT)/emsdk/emsdk/.emscripten_cache
|
2018-10-01 22:52:17 +00:00
|
|
|
export EMSCRIPTEN = $(PYODIDE_ROOT)/emsdk/emsdk/emscripten/tag-1.38.12
|
|
|
|
export BINARYEN_ROOT = $(PYODIDE_ROOT)/emsdk/emsdk/binaryen/tag-1.38.12_64bit_binaryen
|
2018-05-16 17:06:44 +00:00
|
|
|
|
2018-07-18 13:26:18 +00:00
|
|
|
export PYVERSION=3.7.0
|
2018-05-16 17:06:44 +00:00
|
|
|
export PYMINOR=$(basename $(PYVERSION))
|
2018-06-20 18:54:47 +00:00
|
|
|
export HOSTPYTHONROOT=$(PYODIDE_ROOT)/cpython/build/$(PYVERSION)/host
|
2018-06-20 21:05:24 +00:00
|
|
|
export HOSTPYTHON=$(HOSTPYTHONROOT)/bin/python3
|
2018-06-20 18:54:47 +00:00
|
|
|
export TARGETPYTHONROOT=$(PYODIDE_ROOT)/cpython/installs/python-$(PYVERSION)
|
2018-05-16 17:06:44 +00:00
|
|
|
export PYTHONINCLUDE=$(PYODIDE_ROOT)/cpython/installs/python-$(PYVERSION)/include/python$(PYMINOR)
|
|
|
|
|
|
|
|
export SIDE_LDFLAGS=\
|
|
|
|
-O3 \
|
2018-05-31 22:46:57 +00:00
|
|
|
-s "BINARYEN_METHOD='native-wasm'" \
|
2018-05-16 17:06:44 +00:00
|
|
|
-Werror \
|
|
|
|
-s EMULATED_FUNCTION_POINTERS=1 \
|
|
|
|
-s EMULATE_FUNCTION_POINTER_CASTS=1 \
|
|
|
|
-s SIDE_MODULE=1 \
|
|
|
|
-s WASM=1 \
|
2018-09-27 09:38:26 +00:00
|
|
|
-s "BINARYEN_TRAP_MODE='clamp'" \
|
2018-05-16 17:06:44 +00:00
|
|
|
--memory-init-file 0
|