@@ -427,21 +427,21 @@ clippy_rustdoc: install_rs_check_toolchain
427427 echo " WARNING: skipped clippy_rustdoc, unsupported OS $( OS) " ; \
428428 exit 0; \
429429 fi && \
430- CARGO_TERM_QUIET=true CLIPPYFLAGS=" -D warnings" RUSTDOCFLAGS=" --no-run --nocapture -- test-builder ./scripts/clippy_driver.sh -Z unstable-options" \
430+ CARGO_TERM_QUIET=true CLIPPYFLAGS=" -D warnings" RUSTDOCFLAGS=" --no-run --test-builder ./scripts/clippy_driver.sh -Z unstable-options" \
431431 cargo " $( CARGO_RS_CHECK_TOOLCHAIN) " test --doc \
432432 --features=boolean,shortint,integer,zk-pok,pbs-stats,strings,experimental \
433- -p tfhe
433+ -p tfhe -- --nocapture
434434
435435.PHONY : clippy_rustdoc_gpu # Run clippy lints on doctests enabling the boolean, shortint, integer and zk-pok
436436clippy_rustdoc_gpu : install_rs_check_toolchain
437437 if [[ " $( OS) " != " Linux" ]]; then \
438438 echo " WARNING: skipped clippy_rustdoc_gpu, unsupported OS $( OS) " ; \
439439 exit 0; \
440440 fi && \
441- CARGO_TERM_QUIET=true CLIPPYFLAGS=" -D warnings" RUSTDOCFLAGS=" --no-run --nocapture -- test-builder ./scripts/clippy_driver.sh -Z unstable-options" \
441+ CARGO_TERM_QUIET=true CLIPPYFLAGS=" -D warnings" RUSTDOCFLAGS=" --no-run --test-builder ./scripts/clippy_driver.sh -Z unstable-options" \
442442 cargo " $( CARGO_RS_CHECK_TOOLCHAIN) " test --doc \
443443 --features=boolean,shortint,integer,zk-pok,pbs-stats,strings,experimental,gpu \
444- -p tfhe
444+ -p tfhe -- --nocapture
445445
446446.PHONY : clippy_c_api # Run clippy lints enabling the boolean, shortint and the C API
447447clippy_c_api : install_rs_check_toolchain
@@ -649,11 +649,19 @@ build_web_js_api: install_rs_build_toolchain install_wasm_pack
649649 -- --features=boolean-client-js-wasm-api,shortint-client-js-wasm-api,integer-client-js-wasm-api,zk-pok,extended-types
650650
651651.PHONY : build_web_js_api_parallel # Build the js API targeting the web browser with parallelism support
652+ # parallel wasm requires specific build options, see https://github.com/rust-lang/rust/pull/147225
652653build_web_js_api_parallel : install_rs_check_toolchain install_wasm_pack
653654 cd tfhe && \
654655 rustup component add rust-src --toolchain $(RS_CHECK_TOOLCHAIN ) && \
655- RUSTFLAGS=" $( WASM_RUSTFLAGS) -C target-feature=+atomics,+bulk-memory" rustup run $(RS_CHECK_TOOLCHAIN ) \
656- wasm-pack build --release --target=web \
656+ RUSTFLAGS=" $( WASM_RUSTFLAGS) -C target-feature=+atomics,+bulk-memory \
657+ -Clink-arg=--shared-memory \
658+ -Clink-arg=--max-memory=1073741824 \
659+ -Clink-arg=--import-memory \
660+ -Clink-arg=--export=__wasm_init_tls \
661+ -Clink-arg=--export=__tls_size \
662+ -Clink-arg=--export=__tls_align \
663+ -Clink-arg=--export=__tls_base" \
664+ rustup run $(RS_CHECK_TOOLCHAIN ) wasm-pack build --release --target=web \
657665 -- --features=boolean-client-js-wasm-api,shortint-client-js-wasm-api,integer-client-js-wasm-api,parallel-wasm-api,zk-pok,extended-types \
658666 -Z build-std=panic_abort,std && \
659667 find pkg/snippets -type f -iname workerHelpers.js -exec sed -i " s|const pkg = await import('..\/..\/..');|const pkg = await import('..\/..\/..\/tfhe.js');|" {} \;
0 commit comments