Skip to content

Commit 7de0c29

Browse files
Update pyodide.yml
try using flags from js/scripts/build-wasm.ts
1 parent e855a50 commit 7de0c29

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/pyodide.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ jobs:
4141
run: |
4242
source ~/emsdk/emsdk_env.sh
4343
cd src/api/python
44-
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ~/env/bin/pyodide build --exports whole_archive
44+
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CXXFLAG="${CXXFLAGS}" ~/env/bin/pyodide build --exports whole_archive
4545
env:
46-
CFLAGS: "-fexceptions -s DISABLE_EXCEPTION_CATCHING=0"
47-
LDFLAGS: "-fexceptions"
46+
CFLAGS: "-fexceptions -s DISABLE_EXCEPTION_CATCHING=0 -pthread -s USE_PTHREADS=1 -g2 -s SAFE_HEAP=0 -s PTHREAD_POOL_SIZE=0 -s PTHREAD_POOL_SIZE_STRICT=0"
47+
LDFLAGS: "-fexceptions -s WASM_BIGINT -s -pthread -s USE_PTHREADS=1"
48+
CXXFLAGS: "-fexceptions -pthread -s USE_PTHREADS=1 -s DISABLE_EXCEPTION_CATCHING=0"
4849

4950
- name: Setup env-pyodide
5051
run: |

0 commit comments

Comments
 (0)