From 78a91f337934b274d4d04e1890d83ce72e7d7f5d 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..303a4afacea0a 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 --shared-memory" + export EMCC_CFLAGS="-s USE_PTHREADS=1 --shared-memory" fi cargo test --no-default-features --manifest-path libc-test/Cargo.toml \ --target "${TARGET}" ${LIBC_CI_ZBUILD_STD+"-Zbuild-std"}