From 43fba40c9c6abe897f74a0c2b76f5666e1754259 Mon Sep 17 00:00:00 2001 From: Victor Polevoy Date: Thu, 9 Jun 2022 09:55:38 +0200 Subject: [PATCH] Try enabling USE_PTHREADS in ci/run.sh for emscripten. This should enable pthread functionality for emcc. --- ci/run.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/run.sh b/ci/run.sh index 30427d27acc96..9aa6720ef88c6 100755 --- a/ci/run.sh +++ b/ci/run.sh @@ -113,6 +113,8 @@ else # Rust uses -g4 by default what causes link issues. # This should disable the -g4 option. export RUSTFLAGS="-Cdebuginfo=0" + export EMCC_FLAGS="-s USE_PTHREADS=1 -s SHARED_MEMORY" + export EMCC_CFLAGS="-s USE_PTHREADS=1 -s SHARED_MEMORY" fi cargo test --no-default-features --manifest-path libc-test/Cargo.toml \ --target "${TARGET}" ${LIBC_CI_ZBUILD_STD+"-Zbuild-std"}