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