From 7de0c29f12886f20f8d7fb1e60f5b38297f89fe5 Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Tue, 19 Nov 2024 12:58:08 -0800 Subject: [PATCH] Update pyodide.yml try using flags from js/scripts/build-wasm.ts --- .github/workflows/pyodide.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pyodide.yml b/.github/workflows/pyodide.yml index 4b03980cf92..318acf1ac9e 100644 --- a/.github/workflows/pyodide.yml +++ b/.github/workflows/pyodide.yml @@ -41,10 +41,11 @@ jobs: run: | source ~/emsdk/emsdk_env.sh cd src/api/python - CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" ~/env/bin/pyodide build --exports whole_archive + CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CXXFLAG="${CXXFLAGS}" ~/env/bin/pyodide build --exports whole_archive env: - CFLAGS: "-fexceptions -s DISABLE_EXCEPTION_CATCHING=0" - LDFLAGS: "-fexceptions" + 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" + LDFLAGS: "-fexceptions -s WASM_BIGINT -s -pthread -s USE_PTHREADS=1" + CXXFLAGS: "-fexceptions -pthread -s USE_PTHREADS=1 -s DISABLE_EXCEPTION_CATCHING=0" - name: Setup env-pyodide run: |