Skip to content

Commit

Permalink
Update emsdk to 3.1.53
Browse files Browse the repository at this point in the history
  • Loading branch information
tniessen committed Jan 31, 2024
1 parent 314385d commit 9921816
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
env:
NODE_VERSION: 18.x
EMSDK_VERSION: 3.1.14
EMSDK_VERSION: 3.1.53
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions deps/mceliece/build-wasm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ compile_algorithm() {
variables="-DCRYPTO_NAMESPACE(x)=crypto_kem_${id}_##x -D_CRYPTO_NAMESPACE(x)=_crypto_kem_${id}_##x"

find kem/$id -type f -name '*.c' | while read source; do
target=$obj_dir/${source%.c}.bc
target=$obj_dir/${source%.c}.o
echo " $source -> $target"
mkdir -p `dirname $target`
emcc -std=c11 -Oz -Ikem/$id/subroutines -fvisibility=default $variables -c $source -o $target
Expand All @@ -31,8 +31,8 @@ all_exports=`(echo -n '["_malloc","_free"'; for impl in $implementations; do
done; echo -n ']') | sed 's/,\]/]/'`
echo "Linking"
all_objs=`find $obj_dir -type f -name '*.bc'`
emcc -std=c11 -Oz $all_objs -o $build_dir/mceliece.wasm -s EXPORTED_FUNCTIONS="$all_exports" -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s WASM=1 --no-entry
all_objs=`find $obj_dir -type f -name '*.o'`
emcc -std=c11 -Oz $all_objs -o $build_dir/mceliece.wasm -s STACK_SIZE=5MB -s EXPORTED_FUNCTIONS="$all_exports" -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s WASM=1 --no-entry
echo "Converting header"
(
Expand Down

0 comments on commit 9921816

Please sign in to comment.