File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 187187 pushd $ROOT /src/cpython${PYBUILD}
188188 # fix double linking
189189 sed -i ' s| -lcrypto||g' Makefile.pre.in
190- sed -i ' s|#error|//#error|g' /opt/python-wasm-sdk/src/Python-3.11.6/Include/pyport.h
190+
191+ # REALLY FIXME: appeared only after 3.1.49bi
192+ sed -i ' s|#error|//#error|g' $ROOT /src/cpython${PYBUILD} /Include/pyport.h
193+
191194 # please let compiler/user decide what to do with wasm CPU.
192195 sed -i ' s|-sWASM_BIGINT||g' configure
193196 sed -i ' s|-sWASM_BIGINT||g' configure.ac
Original file line number Diff line number Diff line change @@ -190,8 +190,6 @@ MVP=\${MVP:true}
190190WASM_PURE=\$ {WASM_PURE:true}
191191
192192
193-
194-
195193if \$ MVP
196194then
197195
@@ -208,14 +206,14 @@ then
208206 #WASMOPTS="-fno-wasm-exceptions -sSUPPORT_LONGJMP=emscripten"
209207 #CPU="-mnontrapping-fptoint -mno-reference-types -mno-sign-ext -m32"
210208
211- CPU="-sSUPPORT_LONGJMP=emscripten -mnontrapping-fptoint -mno-reference-types -mno-sign-ext -m32"
209+ CPU="-D_FILE_OFFSET_BITS=64 - sSUPPORT_LONGJMP=emscripten -mnontrapping-fptoint -mno-reference-types -mno-sign-ext -m32"
212210
213211else
214- CPU="-mcpu=bleeding-edge -m64"
212+ CPU="-D_FILE_OFFSET_BITS=64 - mcpu=bleeding-edge -m64"
215213fi
216214
217- # quick hack until 3.1.47
218- WASMOPTS ="$WASM_EXTRA \$ WASMOPTS"
215+ # try to keep 32 but with 64 iface (bitint)
216+ WASMEXTRA ="$WASM_EXTRA \$ WASMOPTS"
219217
220218
221219LINKING=\$ {LINKING:-false}
384382if \$ IS_SHARED
385383then
386384 # always pass CPU opts when linking
387- $EMSDK_PYTHON -E \$ 0.py \$ SHARED $COPTS \$ CPU \$ LDFLAGS -sSIDE_MODULE -gsource-map --source-map-base / "\$ @" \$ COMMON
385+ $EMSDK_PYTHON -E \$ 0.py \$ SHARED $COPTS \$ CPU \$ WASM_EXTRA \$ LDFLAGS -sSIDE_MODULE -gsource-map --source-map-base / "\$ @" \$ COMMON
388386 if \$ MVP
389387 then
390388 if \$ WASM_PURE
You can’t perform that action at this time.
0 commit comments